Created
April 16, 2019 15:49
-
-
Save cmdcolin/04e2378b60f4457a41904c659368066f to your computer and use it in GitHub Desktop.
git grep alias
This file contains 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
ag () { | |
local dir="${2:-./*}" | |
git grep -i $1 -- $dir ':(exclude)*.snap' ':(exclude)*.json' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment