This website works better with JavaScript.
Home
Explore
Help
Sign In
Linux
/
dmenu
generated from
gmarx/git-template
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
made dmenu_path the way anydot proposed in response to Jukka
master
Anselm R. Garbe
17 years ago
parent
8b633bf17d
commit
dfe95cb546
1 changed files
with
8 additions
and
15 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-15
dmenu_path
+ 8
- 15
dmenu_path
View File
@ -1,22 +1,15 @@
#!/bin/sh
#!/bin/sh
CACHE=$HOME/.dmenu_cache
CACHE=$HOME/.dmenu_cache
UPTODATE=1
IFS=:
IFS=:
uptodate() { [ $UPTODATE -eq 1 ]; }
if test ! -f $CACHE
then
UPTODATE=0
fi
if uptodate
then
for dir in $PATH
do
test $dir -nt $CACHE && { UPTODATE=0; break; }
done
fi
uptodate() {
test ! -f $CACHE && return 1
for dir in $PATH
do
test $dir -nt $CACHE && return 1
done
return 0
}
if ! uptodate
if ! uptodate
then
then
Write
Preview
Loading…
Cancel
Save