Back (Current repo: dmenu)

fork of suckless dmenu
To clone this repository:
git clone https://git.viktor1993.net/dmenu.git
Log | Download | Files | Refs | README | LICENSE

dmenu_path (240B)


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