My dmenu build
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
240 B

  1. #!/bin/sh
  2. cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
  3. cache="$cachedir/dmenu_run"
  4. [ ! -e "$cachedir" ] && mkdir -p "$cachedir"
  5. IFS=:
  6. if stest -dqr -n "$cache" $PATH; then
  7. stest -flx $PATH | sort -u | tee "$cache"
  8. else
  9. cat "$cache"
  10. fi