summaryrefslogtreecommitdiff
path: root/dmenu_path
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu_path')
-rwxr-xr-xdmenu_path5
1 files changed, 4 insertions, 1 deletions
diff --git a/dmenu_path b/dmenu_path
index 3a7cda7..4c2a5b4 100755
--- a/dmenu_path
+++ b/dmenu_path
@@ -2,12 +2,15 @@
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/dmenu_run"
+configdir="${XDG_CONFIG_HOME:-"$HOME/.config/dmenu"}"
+config="$configdir/dmenu_omitlist"
[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
+[ ! -e "$configdir" ] && mkdir -p "$configdir"
IFS=:
if stest -dqr -n "$cache" $PATH; then
- stest -flx $PATH | sort -u | tee "$cache"
+ stest -flx $PATH | sort -u | grep -wvF -f $config | tee "$cache"
else
cat "$cache"
fi