diff options
Diffstat (limited to 'dmenu_path')
| -rwxr-xr-x | dmenu_path | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dmenu_path b/dmenu_path deleted file mode 100755 index a9ddd47..0000000 --- a/dmenu_path +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | CACHE=$HOME/.dmenu_cache | ||
| 3 | IFS=: | ||
| 4 | |||
| 5 | uptodate() { | ||
| 6 | test -f "$CACHE" && | ||
| 7 | for dir in $PATH | ||
| 8 | do | ||
| 9 | test ! $dir -nt "$CACHE" || return 1 | ||
| 10 | done | ||
| 11 | } | ||
| 12 | |||
| 13 | if ! uptodate | ||
| 14 | then | ||
| 15 | for dir in $PATH | ||
| 16 | do | ||
| 17 | cd "$dir" && | ||
| 18 | for file in * | ||
| 19 | do | ||
| 20 | test -x "$file" && echo "$file" | ||
| 21 | done | ||
| 22 | done | sort -u > "$CACHE".$$ && | ||
| 23 | mv "$CACHE".$$ "$CACHE" | ||
| 24 | fi | ||
| 25 | |||
| 26 | cat "$CACHE" | ||
