slitaz-base-files rev 284
/etc/profile: fix PS1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 20 18:38:54 2015 +0200 (2015-08-20) |
parents | f894c64b5e7c |
children | 9bf2e6c4afc2 |
files | rootfs/etc/profile |
line diff
1.1 --- a/rootfs/etc/profile Tue Aug 18 19:04:10 2015 +0300 1.2 +++ b/rootfs/etc/profile Thu Aug 20 18:38:54 2015 +0200 1.3 @@ -6,11 +6,11 @@ 1.4 # Prompt format for Ash (Bash use /etc/bashrc). 1.5 if [ $(id -u) -eq 0 ]; then 1.6 # Red and blue for root 1.7 - PS1="\[\e[1;31m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ " 1.8 + PS1="\[\e[1;31m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\\$ " 1.9 #PS1='\u@\h:\w\$ ' 1.10 else 1.11 # Green and blue for users 1.12 - PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ " 1.13 + PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\\$ " 1.14 #PS1='\u@\h:\w\$ ' 1.15 fi 1.16