[ pkg-discuss moved to the Bcc as this clearly isn't pkg(5) related ]

#
# Define default prompt to <username>@<hostname>:<path><"($|#) ">
# and print '#' for user "root" and '$' for normal users.
#
PS1='${logna...@$(/usr/bin/hostname):$(
   [[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
   printf "%s" "${PWD/${HOME}/~}\$ ")'


Is there any reason why it cannot be just

PS1="\...@\h:\w\$ "

It's for compatibility with other shells such as ksh93
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to