undelete dmenu_path and dmenu_run
This commit is contained in:
parent
fa9bdb7604
commit
deb38655db
|
@ -3,6 +3,4 @@
|
||||||
*.rej
|
*.rej
|
||||||
dmenu
|
dmenu
|
||||||
config.h
|
config.h
|
||||||
dmenu_path
|
|
||||||
dmenu_run
|
|
||||||
stest
|
stest
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
|
||||||
|
cache="$cachedir/dmenu_run"
|
||||||
|
|
||||||
|
[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
|
||||||
|
|
||||||
|
IFS=:
|
||||||
|
if stest -dqr -n "$cache" $PATH; then
|
||||||
|
stest -flx $PATH | sort -u | tee "$cache"
|
||||||
|
else
|
||||||
|
cat "$cache"
|
||||||
|
fi
|
Loading…
Reference in New Issue