components/bash/Solaris/etc.skel.bashrc
author Stefan Teleman <stefan.teleman@oracle.com>
Thu, 10 Mar 2011 07:40:29 -0800
changeset 122 0ea89372af96
child 428 c1840af5fbf5
permissions -rw-r--r--
7025850 /etc/skel/.bashrc missing after fresh install, system/install/config:default goes into maintenance

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