aboutsummaryrefslogtreecommitdiff
path: root/swenu-path
blob: 7eaee33d7441637cd30fff74277a0721a94984c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ "$1" ]; then
	swenu-exes | sort -u | tee $cache
fi

cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/swenu-run"

[ ! -e "$cachedir" ] && mkdir -p "$cachedir"

if swenu-exes "$cache"; then
	swenu-exes | sort -u | tee $cache
else
	cat $cache
fi