diff options
Diffstat (limited to 'dmenu_run')
-rwxr-xr-x | dmenu_run | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -5,8 +5,10 @@ if [ ! -d "`dirname "$CACHE"`" ]; then | |||
5 | fi | 5 | fi |
6 | ( | 6 | ( |
7 | IFS=: | 7 | IFS=: |
8 | if [ "`ls -dt $PATH "$CACHE" | head -n 1`" != "$CACHE" ]; then | 8 | if ls -d $PATH | stest -q -n "$CACHE"; then |
9 | lsx $PATH | sort -u > "$CACHE" | 9 | for dir in $PATH; do |
10 | ls $dir | stest -C $dir -fx | ||
11 | done | sort -u > "$CACHE" | ||
10 | fi | 12 | fi |
11 | ) | 13 | ) |
12 | cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd" | 14 | cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd" |