blob: 3e9010287b48ebcc18c5e0b4f5b6925d1b324ca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
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"
|