From bf7b8e37ee2a53f0f1bed75dd84e5214269cfac8 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Fri, 8 Oct 2010 23:24:22 +0100 Subject: dmenu_path.c (shell is a bottleneck) --- dmenu_path | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 dmenu_path (limited to 'dmenu_path') 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" -- cgit v1.2.3