Last active
August 29, 2015 14:16
-
-
Save jcasabona/5c9e69533d72f151b42b to your computer and use it in GitHub Desktop.
Some Bash Profile Stuff
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
#Change color of branch name | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PATH=/usr/local/sbin:$PATH | |
#Directory Aliases | |
alias s="cd ~/Sites" | |
alias p="cd ~/Sites/parsec.dev/wp-content/themes/parsec" | |
#git shortcuts | |
alias ga="git add --all" | |
alias gb="git checkout -b" | |
alias gc="git commit -m" | |
alias gco="git checkout" | |
alias glb="git branch" | |
alias glbr="git branch -a" | |
alias gpl="git pull" | |
alias gpu="git push" | |
alias gs="git status" | |
# Dev shortcuts | |
alias guw="gulp watch" | |
alias grw="grunt watch" | |
alias ea="atom ~/.bash_profile" # Edit bash profile | |
alias sa="source ~/.bash_profile" # Save bash profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to Colin for some of these ideas.