Skip to content

Instantly share code, notes, and snippets.

@stoptime
Created October 10, 2019 13:49
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 stoptime/fea66b51f003945fa33ab1c404f86b07 to your computer and use it in GitHub Desktop.
Save stoptime/fea66b51f003945fa33ab1c404f86b07 to your computer and use it in GitHub Desktop.
# CLI COLORED PROMPT
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1='\[\033[38;5;99m\]\u\[$(tput sgr0)\]\[\033[38;5;98m\]@\[$(tput sgr0)\]\[\033[38;5;97m\]\h\w\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]\[\033[38;5;172m\]$(parse_git_branch)\[$(tput sgr0)\] '
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export LC_CTYPE="utf-8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment