highlight path

This commit is contained in:
Tobias Powalowski 2023-10-18 21:10:52 +02:00
parent 79f9a97e31
commit 9c7283eef9

View file

@ -6,10 +6,10 @@
[[ $- == *i* ]] || return
if [[ "${UID}" == 0 ]]; then
# red for root user, host green, print full working dir
PS1='[\[\e[1;31m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \w]\$ '
PS1='[\[\e[1;31m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \e[1m\w\e[m]\$ '
else
# blue for normal user,host green, print full working dir
PS1='[\[\e[1;34m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \w]\$ '
PS1='[\[\e[1;34m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \e[1m\w\e[m]]\$ '
fi
# color man pages
export GROFF_NO_SGR=1