xref: /titanic_50/usr/src/cmd/nsadmin/bashrc.sh (revision 02b4e56ca3a4e4a4fe9e52fca9c2972101f0e57f)
1#
2# Define default prompt to <username>@<hostname>:<path><"($|#) ">
3# and print '#' for user "root" and '$' for normal users.
4#
5PS1='${LOGNAME}@$(/usr/bin/hostname):$(
6    [[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
7    printf "%s" "${PWD/${HOME}/~}\$ ")'
8