Skip to content

Instantly share code, notes, and snippets.

@Grayson
Created January 30, 2012 22:37

Revisions

  1. Grayson Hansard revised this gist Jan 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # Just copy and paste the following into your shell prompt.

    echo "scale=4;" `cat ~/.bash_history | grep git | wc -l` "/" `cat ~/.bash_history | wc -l` " * 100" | bc
    echo "scale=4;" `cat ~/.bash_history | grep -e "^ *git" | wc -l` "/" `cat ~/.bash_history | wc -l` " * 100" | bc
  2. Grayson Hansard created this gist Jan 30, 2012.
    3 changes: 3 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Just copy and paste the following into your shell prompt.

    echo "scale=4;" `cat ~/.bash_history | grep git | wc -l` "/" `cat ~/.bash_history | wc -l` " * 100" | bc