Skip to content

Instantly share code, notes, and snippets.

@co3k
Created October 17, 2012 05:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save co3k/3903869 to your computer and use it in GitHub Desktop.
Save co3k/3903869 to your computer and use it in GitHub Desktop.
Git リポジトリ内で ack しようとするとこらーって言うやつ
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