Created
April 9, 2015 01:30
-
-
Save christabor/15ca896d31230494327b to your computer and use it in GitHub Desktop.
Search and open files in sublime using ag
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
function agFileSearch() { | |
ag "$1" -l | xargs open | |
} | |
alias agfiles='agFileSearch' | |
# .. usage: | |
# agfiles 'mytext' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment