7058155 /etc/skel/.bashrc in Userland consolidation should be updated with a new PS1 setting
authorMargot Miller <Margot.Miller@Sun.COM>
Wed, 20 Jul 2011 13:54:22 -0700
changeset 428 c1840af5fbf5
parent 427 1902114e6f0f
child 429 02007d525e89
7058155 /etc/skel/.bashrc in Userland consolidation should be updated with a new PS1 setting
components/bash/Solaris/etc.skel.bashrc
--- a/components/bash/Solaris/etc.skel.bashrc	Wed Jul 20 20:15:33 2011 +0000
+++ b/components/bash/Solaris/etc.skel.bashrc	Wed Jul 20 13:54:22 2011 -0700
@@ -2,6 +2,5 @@
 # Define default prompt to <username>@<hostname>:<path><"($|#) ">
 # and print '#' for user "root" and '$' for normal users.
 #
-PS1='${LOGNAME}@$(/usr/bin/hostname):$(
-    [[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
-    printf "%s" "${PWD/${HOME}/~}\$ ")'
+
+typeset +x PS1="\u@\h:\w\\$ "