]> git.armaanb.net Git - dmenu.git/blob - dmenu_path
only match links
[dmenu.git] / dmenu_path
1 #!/bin/sh
2 CACHE=$HOME/.dmenu_cache
3 IFS=:
4
5 if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then
6         find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
7 fi
8
9 cat "$CACHE"