Created
February 7, 2017 02:45
-
-
Save allofthenorthwood/6ce01ff654f4d09ea7b163d9cb2fff54 to your computer and use it in GitHub Desktop.
Fancy prompt for bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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