Last active
March 21, 2016 12:32
-
-
Save andrestc/3fc158ff1f146fa01e98 to your computer and use it in GitHub Desktop.
Colored bash_profile with git branch and aliases
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' -e 's/^[ \t]*//' | |
| } | |
| export PS1="\[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\w\[\033[m\]:\[\033[00m\]\[\033[31m\]\$(parse_git_branch)\[\033[m\]\$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' | |
| # Git aliases | |
| alias gs='git status ' | |
| alias ga='git add ' | |
| alias gb='git branch ' | |
| alias gc='git commit' | |
| alias gd='git diff' | |
| alias gk='gitk --all&' | |
| alias gx='gitx --all' | |
| alias got='git ' | |
| alias get='git ' | |
| export GOPATH=$HOME/projects | |
| export EDITOR='vim' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment