6 lines
282 B
Bash
6 lines
282 B
Bash
|
# Personal PS1
|
||
|
parse_git_branch() {
|
||
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
|
||
|
}
|
||
|
PS1=$'\\[\e[97;48;5;69m\\] \u \\[\e[38;5;69;48;5;208m\\]\xee\x82\xb0\\[\e[97m\\] \w \\[\e[38;5;208;49m\\]\xee\x82\xb0\\[\e[33;49m\\]$(parse_git_branch)\n λ \\[\e[0m\\]'
|