dotfiles
Seven years worth of accumulated configuration cruft
dotfiles/scripts/.local/bin/nf
Download raw file: scripts/.local/bin/nf
#!/bin/sh # Search my notes [ "$#" -eq 1 ] || { printf "Search my notes; Usage: nf [regex]\n" 2>&1 exit 1 } for dir in org wiki; do find "$HOME/$dir" \ -type f \ \( -name '*.org' -o -name '*.md' -o -name '*.txt' -o -name '*.myco' -o -name '*.mess' \) \ -exec grep -Hin --color=auto "$1" {} \; done