dmenium

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dmenium
Log | Files | Refs | LICENSE

commit 925bd14b944d3c25b22f86e0d6504e68c815bfef
parent 78475b3e78bde25a5b60af15d08e5a6bd8977ddc
Author: Ed van Bruggen <ed@edryd.org>
Date:   Wed, 18 Oct 2017 23:12:33 -0700

browse: Set target directory from commandline

Diffstat:
browse | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/browse b/browse @@ -1,11 +1,11 @@ #!/usr/bin/env bash # TODO: multisel -target="$2" +target="$1" [ -z "$target" ] && target="$(realpath .)" while true; do - sel="$(ls -1a "$target" | grep -v '^\.$' | dmenu -i -p "$target" -l 25 $@)" + sel="$(ls -1a "$target" | grep -v '^\.$' | dmenu -i -p "$target" -l 25)" ec=$? [ "$ec" -ne 0 ] && exit $ec