diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2025-05-24 04:08:28 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2025-05-24 04:08:28 -0500 |
| commit | e966d5328d6f328546db213278d1a1a6cd2f58d5 (patch) | |
| tree | f0d41635190d29623920fdf4732cea7a006632d2 /keep/manual-programs/suckless/dmenu-5.2/dmenu_path | |
| parent | 5010e575335939597b05f8d58bdf205c693a8004 (diff) | |
install scripts. reorganization. soon to be deployable
Diffstat (limited to 'keep/manual-programs/suckless/dmenu-5.2/dmenu_path')
| -rwxr-xr-x | keep/manual-programs/suckless/dmenu-5.2/dmenu_path | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/keep/manual-programs/suckless/dmenu-5.2/dmenu_path b/keep/manual-programs/suckless/dmenu-5.2/dmenu_path new file mode 100755 index 0000000..3a7cda7 --- /dev/null +++ b/keep/manual-programs/suckless/dmenu-5.2/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 |
