sh/bash.d/bash-prompt.sh
2023-05-09 22:02:34 +02:00

15 lines
241 B
Bash

PS1="\
┌ \t\
– \e[0;31m\${?}\e[0m\
– \e[0;32m\u\e[0m\
@ \e[0;33m\h\e[0m\
"
if [ "$(type -t __git_ps1)" == 'function' ] ; then
PS1="${PS1} –\e[0;35m\$(__git_ps1)\e[0m"
fi
PS1="${PS1}
│\e[0;36m\${PWD}\e[0m
"
PS2="\
└ "