Created
March 4, 2017 02:17
-
-
Save aymen-mouelhi/99780d11cb7d3f3291a707908da902ef to your computer and use it in GitHub Desktop.
.bashrc_profile configuration for colors and git branch support for mac os
This file contains 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
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[36m\]\$(parse_git_branch)\[\033[00m\] $ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment