-
-
Save jcf/3866489 to your computer and use it in GitHub Desktop.
Revisions
-
James Conroy-Finn revised this gist
Apr 20, 2013 . 1 changed file with 30 additions and 30 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,30 +1,30 @@ 686 git commit -v 365 git commit -av 169 git checkout -b 160 git push -u 111 nocorrect mkdir -p 102 nocorrect rm -rf 89 nocorrect rm -r 88 git push -f 79 git branch -D 71 git push origin 61 git git l 43 bundle exec cucumber 36 git remote add 31 bundle exec rspec 28 echo "<a class='foo' 27 git status -sb 27 git add -A 21 git rebase -i 19 nocorrect heroku run 19 heroku run console 18 git reset --hard 17 git branch -M 17 gem search -r 16 knife cluster ssh 15 noglob find . 15 nocorrect heroku config:set 15 git push staging 15 cat ~/Downloads/Analytics Evently 14 noglob rake import:delete 14 nocorrect rm -fr -
mislav revised this gist
Aug 19, 2012 . 2 changed files with 81 additions and 31 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,31 +1,30 @@ 480 git commit -v 397 git status -sb 120 git add -p 53 git push 52 git diff 47 noglob bundle exec 45 ls -G 45 git branch -v 45 bundle 39 git push -u 35 git rebase -i 34 bundle exec ruby 33 git pull 32 ruby -v 32 alias -Lr | 30 script/test 29 cd `coral path 29 bundle exec rspec 28 git log -p 25 git show 23 git push origin 21 sh ./apply.sh 21 script/test net_http 21 polyamory 20 vagrant provision 19 mvim 19 git reset --hard 19 git am -3 18 vagrant ssh 18 ruby -e 'p 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,51 @@ setopt SH_WORD_SPLIT 2>/dev/null _aliases="$(alias -Lr 2>/dev/null || alias)" _history="$(history -10000 2>/dev/null || history)" alias_for() { [[ $1 =~ '[[:punct:]]' ]] && return local found="$( echo "$_aliases" | sed -nE "/^alias ${1}='?(.+)/s//\\1/p" )" [[ -n $found ]] && echo "${found%\'}" } _git_aliases="$(git config --get-regex 'alias\..*')" git_alias_for() { [[ $1 =~ '[[:punct:]]' ]] && return echo "$_git_aliases" | sed -nE "/^alias.${1} ([^!].+)/s//\\1/p" } expand_command_line() { shift while [[ $1 =~ '=' ]]; do shift done [[ $# -eq 0 ]] && return local found_alias="$(alias_for $1)" if [[ -n $found_alias ]]; then shift expand_command $found_alias "$@" else expand_command "$@" fi } expand_command() { if [[ ( $1 = git || $1 = hub ) && $# -gt 1 ]]; then local found_git_alias="$(git_alias_for $2)" if [[ -n $found_git_alias ]]; then shift 2 expand_command git $found_alias "$@" else echo git $2 $3 fi else echo $1 $2 $3 fi } { echo "$_history" | while read cmd; do expand_command_line $cmd done } | sort | uniq -c | sort -k1 -rn | head -30 -
steveklabnik created this gist
Aug 19, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ $ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30 610 git status 568 git commit -m 491 git add . 252 git push origin 176 bundle 138 rails s 128 ls 120 git commit --amend 114 git reset --hard 109 rvm use 1.9.3 104 cd .. 103 mvim Gemfile 94 rake db:migrate 90 git log 75 rails c 74 rake 70 rake test 68 bundle exec rake 67 git push heroku 63 git fetch origin 58 exit 49 git checkout master 44 git rebase -i 41 bundle update 40 git rebase origin/master 40 cucumber 38 git diff 38 git checkout -b 37 rspec 35 irb