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\$ "

?

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

Reply via email to