diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-12 20:29:37 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-12 20:29:37 +0100 |
commit | 02308076e833029cb84467e1773aacbac8ae1f0a (patch) | |
tree | 33135f924a98b14e4e328b08a4d2a07dd96b4ffc /selectPath.sh | |
parent | 7271354955d686d5ea7e698542f7afb4864746ee (diff) | |
download | scripts-02308076e833029cb84467e1773aacbac8ae1f0a.tar.gz scripts-02308076e833029cb84467e1773aacbac8ae1f0a.zip |
Simple changes to some scripts.
Diffstat (limited to 'selectPath.sh')
-rwxr-xr-x | selectPath.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/selectPath.sh b/selectPath.sh new file mode 100755 index 0000000..5de2af8 --- /dev/null +++ b/selectPath.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Reads ~/.paths and uses dmenu to echo a path. + +[ -z "$1" ] && prompt="Choose a path:" || prompt="$1" +echo "$(cat $HOME/.paths | dmenu -l $(cat $HOME/.paths | wc -l) -p "$prompt" | awk '{print $3}')" + |