Skip to content

Instantly share code, notes, and snippets.

@aymen-mouelhi
Created March 4, 2017 02:17
Show Gist options
  • Save aymen-mouelhi/99780d11cb7d3f3291a707908da902ef to your computer and use it in GitHub Desktop.
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
# 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