diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-06-14 08:59:25 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-06-14 08:59:25 -0700 |
| commit | 3376b6420d3b6cc965890e46e7bbd06fbc9fd037 (patch) | |
| tree | 67b59ce0f9ba016db62067a081c0535d064d2a3f /suckless/dmenu/dmenu-5.4/dmenu_path | |
| parent | d533343af750dcfda2321f33953b66396e767f10 (diff) | |
layout reorg
Diffstat (limited to 'suckless/dmenu/dmenu-5.4/dmenu_path')
| -rwxr-xr-x | suckless/dmenu/dmenu-5.4/dmenu_path | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/suckless/dmenu/dmenu-5.4/dmenu_path b/suckless/dmenu/dmenu-5.4/dmenu_path new file mode 100755 index 0000000..3a7cda7 --- /dev/null +++ b/suckless/dmenu/dmenu-5.4/dmenu_path @@ -0,0 +1,13 @@ +#!/bin/sh + +cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" +cache="$cachedir/dmenu_run" + +[ ! -e "$cachedir" ] && mkdir -p "$cachedir" + +IFS=: +if stest -dqr -n "$cache" $PATH; then + stest -flx $PATH | sort -u | tee "$cache" +else + cat "$cache" +fi |
