merge stest -> default

This commit is contained in:
Connor Lane Smith 2011-12-19 16:52:48 +01:00
commit 6664e4233f
7 changed files with 186 additions and 69 deletions

View file

@ -7,8 +7,8 @@ else
fi
(
IFS=:
if [ "`ls -dt $PATH "$cache" | head -n 1`" != "$cache" ]; then
lsx $PATH | sort -u | tee "$cache" | dmenu "$@"
if stest -dqr -n "$cache" $PATH; then
stest -flx $PATH | sort -u | tee "$cache" | dmenu "$@"
else
dmenu "$@" < "$cache"
fi