This is my bash prompt:
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
}
PS1=$"[e]0;wa] [ 33[32m]w[ 33[33m]$(parse_git_branch)[ 33[00m]n> "
That gives me a nice prompt:
~/path/to/dir (git_branch_name)
>
Instead of the simple >
, I’d like to use one of the awesome symbols: ∴ → ☿ ★.
How do I do that?