From 23329841ed4f9555b84f9f4eb966227f01986a5d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sat, 23 May 2020 17:14:18 +0200 Subject: [PATCH] bash: Balance prompt colors. --- .bashrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index e7286afe..7a68cfc9 100644 --- a/.bashrc +++ b/.bashrc @@ -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(){