Skip to content

Instantly share code, notes, and snippets.

@Grayson
Created January 30, 2012 22:37
Show Gist options
  • Save Grayson/1707245 to your computer and use it in GitHub Desktop.
Save Grayson/1707245 to your computer and use it in GitHub Desktop.
Quick calculation of the number of git commands in your bash history.
# Just copy and paste the following into your shell prompt.
echo "scale=4;" `cat ~/.bash_history | grep -e "^ *git" | wc -l` "/" `cat ~/.bash_history | wc -l` " * 100" | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment