made dmenu_path the way anydot proposed in response to Jukka
This commit is contained in:
parent
8b633bf17d
commit
dfe95cb546
17
dmenu_path
17
dmenu_path
@ -1,22 +1,15 @@
|
||||
#!/bin/sh
|
||||
CACHE=$HOME/.dmenu_cache
|
||||
UPTODATE=1
|
||||
IFS=:
|
||||
|
||||
uptodate() { [ $UPTODATE -eq 1 ]; }
|
||||
|
||||
if test ! -f $CACHE
|
||||
then
|
||||
UPTODATE=0
|
||||
fi
|
||||
|
||||
if uptodate
|
||||
then
|
||||
uptodate() {
|
||||
test ! -f $CACHE && return 1
|
||||
for dir in $PATH
|
||||
do
|
||||
test $dir -nt $CACHE && { UPTODATE=0; break; }
|
||||
test $dir -nt $CACHE && return 1
|
||||
done
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
if ! uptodate
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user