aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-08-07 21:04:31 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-08-07 21:04:31 +0200
commit00a415d37872e751e3d935da7512126e3e8797f1 (patch)
tree7aa4b7ae3163849f210c5cfcf277118fe0468c36
parent9fe2bc3fa66f25be635c5d4d66285718a0b116da (diff)
downloadscripts-00a415d37872e751e3d935da7512126e3e8797f1.tar.gz
scripts-00a415d37872e751e3d935da7512126e3e8797f1.zip
Specific lines for dmenu on selectPath.sh.
-rwxr-xr-xselectPath.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/selectPath.sh b/selectPath.sh
index 5de2af8..e85af65 100755
--- a/selectPath.sh
+++ b/selectPath.sh
@@ -3,5 +3,4 @@
# 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}')"
-
+echo "$(cat $HOME/.paths | dmenu -l 20 -p "$prompt" | awk '{print $3}')"