On Aug 30, 2009, at 8:46 PM, [email protected] wrote:

[ 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

ksh93 cares about your .bashrc ? That's news to me.

Besides, I'm sure Roland will certainly let everyone know that ksh93 has builtins for this stuff anyway.

/dale
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to