Connor Lane Smith
14 years ago
5 changed files with 15 additions and 26 deletions
@ -1,9 +0,0 @@
|
||||
#!/bin/sh |
||||
CACHE=$HOME/.dmenu_cache |
||||
IFS=: |
||||
|
||||
if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then |
||||
lsx $PATH | sort -u > "$CACHE" |
||||
fi |
||||
|
||||
cat "$CACHE" |
@ -1,2 +1,9 @@
|
||||
#!/bin/sh |
||||
exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe |
||||
CACHE=${XDG_CACHE_HOME:-"$HOME/.cache"}/dmenu_run |
||||
( |
||||
IFS=: |
||||
if test "`ls -dt $PATH "$CACHE" 2> /dev/null | sed 1q`" != "$CACHE"; then |
||||
mkdir -p "`dirname "$CACHE"`" && lsx $PATH | sort -u > "$CACHE" |
||||
fi |
||||
) |
||||
cmd=`dmenu "$@" < "$CACHE"` && exec $cmd |
||||
|
Loading…
Reference in new issue