scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit a108e5f0143d7a4f6b6cf5f913a9453abea07c03
parent 41040d71f7aeecec23d148907e48acefb412d82e
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Wed, 30 Mar 2016 16:46:46 +0200

[browse] Take prompt as 2nd argument.

Diffstat:
Msrc/browse | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/browse b/src/browse @@ -3,9 +3,11 @@ target="$1" [ -z "$target" ] && target="$(realpath .)" +prompt="$2" +[ -z "$prompt" ] && prompt="$target" while true; do - sel="$(ls -1a "$target" |grep -v '^\.$' | dmenu -p "$target" -l 25)" + sel="$(ls -1a "$target" |grep -v '^\.$' | dmenu -p "$prompt" -l 25)" ec=$? [ "$ec" -ne 0 ] && exit $ec