Skip to content

Instantly share code, notes, and snippets.

@czars
czars / bash_profile
Created November 4, 2016 16:36
terminal style with git branch name
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/《\1》/'
}
export PS1='╔═\[\033[36m\]【\[\033[31m\]\u\[\033[36m\]】\[\033[36m\]╠ \[\033[32m\]\w \[\033[31m\]@$(parse_git_branch)\[\033[36m\]╣\[\033[0m\]\n╚═§ '