Jonathan Edwards wrote:
On Aug 30, 2009, at 11:28 AM, Cyril Plisko wrote:Hi ! This weekend I converted my laptop to OpenSolaris. I noticed that the default user shell is bash and user home directory is populated with ~/.bashrc that defines prompt as # # 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\$ " ?haha - yep, one of the first things i change .. my guess is it that it's left over from either an old bourne shell compatibility or perhaps from the great ksh93 debate .. (of course this also is a bit chatty if you boot into a miniroot since /usr/bin/hostname doesn't exist) .. feel free to webrev patch it - particularly for bash if you've got the inclination :)
Personally, I prefer the new prompt. And if I recall correctly, this was an intentional change that is more in line with what other distributions do.
Cheers, -- Shawn Walker _______________________________________________ indiana-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
