Last active
January 16, 2019 04:50
-
-
Save aryamccarthy/9215fa91faf66a6b609a to your computer and use it in GitHub Desktop.
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 lookfor | |
# searches current directory for given text. | |
# Highlights result on each line where it appears. | |
# Usage: lookfor someword | |
function lookfor() { | |
grep --color -nriwI "$@" . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this to your .bash_profile file, then the line
export -f lookfor