Skip to content

Instantly share code, notes, and snippets.

@chrisjangl
Last active December 15, 2019 15:16
Show Gist options
  • Save chrisjangl/003fbfa7b6e0f428130c4638f9db48fb to your computer and use it in GitHub Desktop.
Save chrisjangl/003fbfa7b6e0f428130c4638f9db48fb to your computer and use it in GitHub Desktop.
Listing of bash aliases. Place in home directory, and make sure that the file is being loaded in .bash_rc.
## binary shortcuts
alias node='nodejs'
alias wp='~/wp-cli.phar'
## environment specific frecents
alias clients='cd ~/public_html/clients/'
alias staging='cd ~/public_html/staging/'
## directory traversal
alias ..='cd ../'
alias ...='cd ../../'
alias ....='cd ../../../'
## git
alias g='git'
# working version:
alias gpub='git push --set-upstream github $(git branch | grep \* | cut -b 3-) '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gco='git checkout '
alias gco-b='git checkout -b'
alias gd='git diff'
alias gl='git log'
alias glog='git log'
alias gs='git status '
alias gsb='git status -sb '
alias gwhoops='git commit --amend --no-edit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment