Created
February 23, 2018 01:08
-
-
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
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 characters
# 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