Skip to content

Instantly share code, notes, and snippets.

@spacekat
Last active August 29, 2015 14:02
Show Gist options
  • Save spacekat/8d372309173c6cde4434 to your computer and use it in GitHub Desktop.
Save spacekat/8d372309173c6cde4434 to your computer and use it in GitHub Desktop.
color_my_prompt kawaii command line
## Prompt
function color_my_prompt {
local __user="\[\033[01;35m\]\u"
local __cur_location="\[\033[01;31m\]\w"
local __git_branch_color="\[\033[37m\]"
local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
local __prompt_tail="\[\033[35m\]♥"
local __last_color="\[\033[37m\]"
export PS1="$__user $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color "
}
color_my_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment