diff options
| author | iamcheeseman <[email protected]> | 2026-05-10 18:36:22 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-10 18:36:22 -0400 |
| commit | 8e5173a2d25c8f79607f4806016276065abda41c (patch) | |
| tree | be4cfd1d2c7589d85b44f55ea8a966cb3bf3d776 /src/dmenu/dmenu_path | |
| parent | f0bf896d1372c69d8ad7889564a28168954d8123 (diff) | |
update
Diffstat (limited to 'src/dmenu/dmenu_path')
| -rwxr-xr-x | src/dmenu/dmenu_path | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dmenu/dmenu_path b/src/dmenu/dmenu_path new file mode 100755 index 0000000..3a7cda7 --- /dev/null +++ b/src/dmenu/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 |
