rssr (516B)
1 #!/bin/sh 2 3 # rssr - rss reader 4 5 [ -z "$RSSR_FUZZY_SEARCHER" ] && RSSR_FUZZY_SEARCHER=$(FUZZER) 6 [ -z "$FEEDS_PATH" ] && FEEDS_PATH="${HOME}/.sfeed/feeds" 7 [ -z "$BROWSER" ] && BROWSER=open 8 9 test -z "$RSSR_FUZZY_SEARCHER" && ( echo "RSSR_FUZZY_SEARCHER needs to be set" && exit 1 ) 10 11 cd "$FEEDS_PATH" || (echo "FEEDS_PATH: $FEEDS_PATH does not exist" && exit 1) 12 13 website="$(ls | $RSSR_FUZZY_SEARCHER)" 14 15 [ -n "$website" ] && link=$(cat "$website" | cut -f3 | $RSSR_FUZZY_SEARCHER) 16 17 [ -n "$link" ] && "$BROWSER" "$link" 18