Skip to content

Instantly share code, notes, and snippets.

@tzhenghao
Created February 23, 2018 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzhenghao/43d7d4f332d13a5f35ae550987b31a17 to your computer and use it in GitHub Desktop.
Save tzhenghao/43d7d4f332d13a5f35ae550987b31a17 to your computer and use it in GitHub Desktop.
A bunch of custom bash/zsh aliases I've used over the past few years
# My own aliases.
alias q='exit'
alias c='clear'
alias h='history'
alias cs='clear;ls'
alias p='cat'
alias pd='pwd'
alias lsa='ls -a'
alias lsl='ls -l'
alias pd='pwd'
alias null='/dev/null'
alias t='time'
alias rm='rm -i'
# Directories
alias home='cd ~'
alias root='cd /'
alias dtop='cd ~/Desktop'
alias dbox='cd ~/Dropbox'
alias box='cd ~/Box\ Sync'
alias gdrive='cd ~/Google\ Drive'
alias code='cd ~/code'
alias o=open
alias ..='cd ..'
alias ...='cd ..; cd ..'
alias ....='cd ..; cd ..; cd ..'
alias pv='cd -'
# Git Shortcuts
alias g='git'
alias st='git status'
alias com='git commit -m'
alias clone='git clone'
alias sth='git stash'
alias lg='git log'
alias u='git add -u'
alias all='git add .'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment