summaryrefslogtreecommitdiff
path: root/dz-feed
blob: 0b595ad02d544434f357966b189e9a960a3d6b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Cache pdf files to be opened with dz

cache="$HOME/.cache/dz"

if [ "$1" = "-r" ] || [ ! -e "$cache" ]; then
	find "$HOME" -mindepth 1 \( -name ".*" -o -path "$HOME/cell" -o -path "$HOME/phone/*" \) -prune -o -print |
		sed '/\.pdf$/!d' | sort >"$cache"
	# notify-send "dz cache updated."
fi

cat "$cache"