Created
October 17, 2012 05:36
-
-
Save co3k/3903869 to your computer and use it in GitHub Desktop.
Git リポジトリ内で ack しようとするとこらーって言うやつ
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 ack() | |
{ | |
if git log -0 &> /dev/null ; then | |
echo "You are in git repository so you can grep by git-grep command" | |
else | |
/usr/local/bin/ack $* | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment