slitaz-base-files diff rootfs/etc/profile @ 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 8e1a647b61e7
children 4c6ddac8e11c
line diff
     1.1 --- a/rootfs/etc/profile	Wed Apr 16 23:49:39 2014 +0200
     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