diff options
| author | iceyrazor <iceyfoxservers@gmail.com> | 2024-11-24 04:50:59 -0600 |
|---|---|---|
| committer | iceyrazor <iceyfoxservers@gmail.com> | 2024-11-24 04:50:59 -0600 |
| commit | 0b274c969e824b4bcf328e3272b8894143f3a683 (patch) | |
| tree | 3b4860beb1c10f68a06d84453ac55b52f327b641 /stuff/manual-programs/suckless/dmenu-5.2/dmenu_path | |
reinit 3. git reset --hard was not right. thanks ai
Diffstat (limited to 'stuff/manual-programs/suckless/dmenu-5.2/dmenu_path')
| -rw-r--r-- | stuff/manual-programs/suckless/dmenu-5.2/dmenu_path | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/stuff/manual-programs/suckless/dmenu-5.2/dmenu_path b/stuff/manual-programs/suckless/dmenu-5.2/dmenu_path new file mode 100644 index 0000000..3a7cda7 --- /dev/null +++ b/stuff/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 |
