ulthar.xyz > Repos

dotfiles

Seven years worth of accumulated configuration cruft
About Files Commits git clone https://ulthar.xyz/repos/dotfiles/dotfiles.git

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
Generated 2025-03-07 15:24:27 -0700 by RepoRat