Permalink
Browse files

Update Aliases

* Clear before doing a git add --patch
* Add alias for favorites, finds 10 most used unix commands
  • Loading branch information...
1 parent 5cfd01e commit e8516369756f80a382b661c8399a18ba512566b7 Adarsh Pandit committed Mar 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 aliases
View
3 aliases
@@ -21,7 +21,7 @@ alias bmr='bundle && migrate && time rake'
alias g='git'
alias ga='git add'
alias gaa='git add .'
-alias gap='git add --patch'
+alias gap='clear && git add --patch'
alias gb='clear && git branch'
alias gcb='git checkout -b'
alias gci='git pull --rebase && rake && git push'
@@ -69,6 +69,7 @@ alias tmux="TERM=screen-256color-bce tmux"
# Misc
alias -g L='| wc -l'
alias -g ONE='| awk '{ print \$1}''
+alias favorites='print -l -- ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
# Heroku console
alias staging='heroku run console --remote staging'

0 comments on commit e851636

Please sign in to comment.