commit ea580be265f3c04287463443b482a68768870f62 parent 8d7b30accd3440d4d450d6faff1836e4c6fd772f Author: clamiax <smoppy@gmail.com> Date: Sun, 18 Oct 2015 12:14:27 +0200 [browse] Better feedbacks with ls -F and use dmenu prompt. Diffstat:
M | browse | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/browse b/browse @@ -2,10 +2,10 @@ # TODO: multisel target="$1" -[ -z "$target" ] && target=. +[ -z "$target" ] && target="$(realpath .)" while true; do - sel="$(ls -1a "$target" |grep -v '^\.$' | dmenu -l 25)" + sel="$(ls -1aF "$target" |grep -v '^\.\/$' | dmenu -p "$target" -l 25)" ec=$? [ "$ec" -ne 0 ] && exit $ec