components/bash/Solaris/etc.skel.bashrc
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Tue, 05 Jul 2011 13:46:16 -0700
changeset 365 f10c11e3a4a5
parent 122 0ea89372af96
child 428 c1840af5fbf5
permissions -rw-r--r--
7039910 move OpenSSL from SFW to Userland gate (fix fips path and make targets)

#
# 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}/~}\$ ")'