bash: Balance prompt colors.

master
Pierre Neidhardt 2020-05-23 17:14:18 +02:00
parent 9682402e2e
commit 23329841ed
1 changed files with 2 additions and 4 deletions

View File

@ -22,11 +22,9 @@ source /etc/bashrc
# Adjust the prompt depending on whether we're in 'guix environment'.
if [ -n "$GUIX_ENVIRONMENT" ]
then
# PS1='\u@\h \w [env]\$ '
PS1='[\u@\h \w] \D{%F %T}\n[env]\$ '
PS1='\e[1;37m[\e[1;32m\w\e[1;37m]\e[m \e[0;34m\D{%F %T}\e[m\n\e[1;37m[env]\$\e[m '
else
# PS1='\u@\h \w \$ '
PS1='\e[1;32m[\w] \D{%F %T}\e[m\n\$ '
PS1='\e[1;37m[\e[1;32m\w\e[1;37m]\e[m \e[0;34m\D{%F %T}\e[m\n\e[1;37m\$\e[m '
fi
mkcd(){