Add ps1-striped.sh

This commit is contained in:
Zakary Timson 2023-08-03 00:34:49 +00:00
parent 34b778920c
commit c5de73bcf9

5
ps1-striped.sh Normal file
View File

@ -0,0 +1,5 @@
# 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\\]'