Skip to content

Instantly share code, notes, and snippets.

@msolomon
Last active June 12, 2019 20:31
Show Gist options
  • Select an option

  • Save msolomon/9453299 to your computer and use it in GitHub Desktop.

Select an option

Save msolomon/9453299 to your computer and use it in GitHub Desktop.
File-searching aliases
function f() { find . -iname "*$1*" ${@:2} }
function r() { grep "$1" ${@:2} -R . }
# Better: use the silver searcher (brew install the_silver_searcher)
alias f="ag -g"
alias r=ag
# Best: use ripgrep (brew install ripgrep)
alias r=rg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment