Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Aliases

* Clear before doing a git add --patch
* Add alias for favorites, finds 10 most used unix commands
  • Loading branch information...
commit e8516369756f80a382b661c8399a18ba512566b7 1 parent 5cfd01e
Adarsh Pandit authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.