Skip to content

Instantly share code, notes, and snippets.

@allofthenorthwood
Created February 7, 2017 02:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allofthenorthwood/6ce01ff654f4d09ea7b163d9cb2fff54 to your computer and use it in GitHub Desktop.
Save allofthenorthwood/6ce01ff654f4d09ea7b163d9cb2fff54 to your computer and use it in GitHub Desktop.
Fancy prompt for bash
# Crazy prompt things
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="[\D{%D %r} \w]\$(parse_git_branch)"
PS1="\$(lolcat -F 3 -p 25 -f <<< \"$PS1\")"
PS1+="\n\[$(tput setaf 0)\](ノ◕ヮ◕)ノ*:・゚✧ \[$(tput sgr0)\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment