summaryrefslogtreecommitdiff
path: root/fz-feed
blob: 988d1ba91debb2521b2683a17b87a34d97fbcdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

cache="$HOME/.cache/fz"

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 "fz cache updated."
fi

cat "$cache"