aboutsummaryrefslogtreecommitdiff
path: root/dmenu_path
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-10-08 23:24:22 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-10-08 23:24:22 +0100
commitbf7b8e37ee2a53f0f1bed75dd84e5214269cfac8 (patch)
treee1e6e3ef7c82e062fe86b088a9741d63aa9325c1 /dmenu_path
parent610a0a8d126b5caa7fec60632c999ca326ca2eff (diff)
downloaddmenu-bf7b8e37ee2a53f0f1bed75dd84e5214269cfac8.tar.gz
dmenu-bf7b8e37ee2a53f0f1bed75dd84e5214269cfac8.tar.bz2
dmenu-bf7b8e37ee2a53f0f1bed75dd84e5214269cfac8.zip
dmenu_path.c (shell is a bottleneck)
Diffstat (limited to 'dmenu_path')
-rwxr-xr-xdmenu_path26
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 @@
-#!/bin/sh
-CACHE=$HOME/.dmenu_cache
-IFS=:
-
-uptodate() {
- test -f "$CACHE" &&
- for dir in $PATH
- do
- test ! $dir -nt "$CACHE" || return 1
- done
-}
-
-if ! uptodate
-then
- for dir in $PATH
- do
- cd "$dir" &&
- for file in *
- do
- test -x "$file" && echo "$file"
- done
- done | sort -u > "$CACHE".$$ &&
- mv "$CACHE".$$ "$CACHE"
-fi
-
-cat "$CACHE"