#!/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"