Skip to content

Instantly share code, notes, and snippets.

@jcasabona
Last active August 29, 2015 14:16
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 jcasabona/5c9e69533d72f151b42b to your computer and use it in GitHub Desktop.
Save jcasabona/5c9e69533d72f151b42b to your computer and use it in GitHub Desktop.
Some Bash Profile Stuff
#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
@jcasabona
Copy link
Author

Thanks to Colin for some of these ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment