1
0
mirror of https://github.com/tiyn/dmenu.git synced 2025-03-25 03:07:47 +01:00
dmenu/dmenu_path
2020-03-28 22:06:09 +01:00

14 lines
240 B
Bash
Executable File

#!/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