Skip to content

Instantly share code, notes, and snippets.

@TalkativeTree
Created September 28, 2016 21:53
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 TalkativeTree/23928fe8a8996eb6373edbb3d7b09db4 to your computer and use it in GitHub Desktop.
Save TalkativeTree/23928fe8a8996eb6373edbb3d7b09db4 to your computer and use it in GitHub Desktop.
Bash Aliases
# Alias for Rails
alias rs="rails s"
alias rc="rails c"
alias restart_sound="sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`"
alias myaliases='less ~/.bash_aliases'
alias bashp='subl ~/.bash_profile'
alias basha='subl ~/.bash_aliases'
alias bashh='subl ~/.bash_history'
# Alias ls some more
alias lla='ls -lAF'
alias ll='ls -l'
alias la='ls -AF'
alias l='ls -CF'
# Alias cd
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# postgreSQL commands
alias pg='psql'
# Alias git commands (always create these aliases)
alias g='git'
alias gs='git status'
alias gpull='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gau='git add --update'
alias gcv='git commit -v'
alias gcva='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcot='git checkout -t'
alias gcotb='git checkout --track -b'
alias glog="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment