repo.or.cz
/
dmenu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
bump version to 5.3
[dmenu.git]
/
dmenu_path
blob
3a7cda79273778642accd4221aa6f1419a1f221d
1
#!/bin/sh
2
3
cachedir
=
"
${XDG_CACHE_HOME:-"$HOME/.cache"}
"
4
cache
=
"
$cachedir
/dmenu_run"
5
6
[ !
-e
"
$cachedir
"
] &&
mkdir
-p
"
$cachedir
"
7
8
IFS
=:
9
if
stest
-dqr -n
"
$cache
"
$PATH
;
then
10
stest
-flx
$PATH
|
sort
-u
|
tee
"
$cache
"
11
else
12
cat
"
$cache
"
13
fi