rwx/bash/bash/prompt.sh
2023-08-18 21:14:34 +02:00

15 lines
238 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="\
│ "