Cross Reference: bashrc.sh
xref
: /
illumos-gate
/
usr
/
src
/
cmd
/
nsadmin
/
bashrc.sh
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
#
# Define default prompt to <username>@<hostname>:<path><"($|#) ">
# and print '#' for user "root" and '$' for normal users.
#
PS1
=
'${LOGNAME}@$(/
usr
/
bin
/
hostname
):$(
[[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
printf "%s" "${PWD/${HOME}/~}\$ ")'