Skip to content

Instantly share code, notes, and snippets.

Created August 26, 2015 17:56
What would you like to do?
zsh aliases
# util
alias c='clear'
alias r='source ~/.bashrc'
# ls aliases
alias l='ls'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# directory shorthands
alias .='cd && ls'
alias ..='cd .. && ls'
alias ...='cd ../.. && ls'
# git
alias gs='git status -sb'
alias gc='git commit -m'
alias gca='git commit -am'
alias ga='git add --all'
alias gaa='git add --all .'
alias gp='git push origin master'
alias gl='git pull origin master'
# package management
alias u='sudo apt-get update && sudo apt-get upgrade -y'
alias up='sudo apt-get update'
alias ug='sudo apt-get upgrade'
alias dug='sudo apt-get dist-upgrade'
alias i='sudo apt-get install'
alias rm='sudo apt-get remove'
alias ar='sudo apt-get autoremove -y'
alias aar='sudo add-apt-repository -y'
# npm commands
alias ns='npm install --save'
alias ng='npm install --global'
alias np='npm prune'
alias nu='npm update'
# meteor commands
alias m='meteor'
alias ma='meteor add'
alias mr='meteor remove'
alias mu='meteor update'
alias ml='meteor logs'
alias ms='meteor shell'
alias mm='meteor mongo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment