Aggiungi 'etc/profile.d/ps1_rw'

main
sam 3 years ago
parent 38205b9e47
commit fe4c53df6f

@ -0,0 +1,15 @@
. /etc/profile.d/bash_colors
if [ -f /etc/chroot ]; then
chroot=$(cat /etc/chroot)
fi
if [ $(id -u) -eq 0 ]; then
USER_COLOR_BASH=$red
USER_COLOR_ZSH=red
else
USER_COLOR_BASH=$blue
USER_COLOR_ZSH=blue
fi
export PS1_BASH="$USER_COLOR_BASH\u$white@\h $blue\w $white|${yellow}bash$white| \\$ "
export PS1_ZSH="%B%F{$USER_COLOR_ZSH}%(?..%? )%f%b%B%F{$USER_COLOR_ZSH}%n%f%b@%m %B%F{blue}%40<..<%~%<< %f|%F{yellow}zsh%f| # "
Loading…
Cancel
Save