Last active
June 12, 2019 20:31
-
-
Save msolomon/9453299 to your computer and use it in GitHub Desktop.
File-searching aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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