dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

soft.sh (353B)


      1 sfeedpath=~/.cache/sfeed/soft
      2 
      3 feeds() {
      4 	. ~/.config/sfeed/feeds/soft
      5 }
      6 
      7 filter() {
      8 	# replace github commits with their plaintext patches
      9 	sed '/github/s:\(/commit/[A-z0-9]*\):\1.patch:' |
     10 
     11 	# replace cgit commits with their plaintext patches
     12 	sed /cgit/s:/commit/:/patch/:
     13 }
     14 
     15 order() {
     16 	# only keep newest 30 entries
     17 	sort -t '	' -k1rn,1 | sed 30q
     18 }