summaryrefslogtreecommitdiff
path: root/fz-feed
diff options
context:
space:
mode:
Diffstat (limited to 'fz-feed')
-rwxr-xr-xfz-feed12
1 files changed, 12 insertions, 0 deletions
diff --git a/fz-feed b/fz-feed
new file mode 100755
index 0000000..988d1ba
--- /dev/null
+++ b/fz-feed
@@ -0,0 +1,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"