xref: /titanic_41/usr/src/cmd/nsadmin/dot-profile.sh (revision ea394cb00fd96864e34d2841b4a22357b621c78f)
1#
2# Simple profile places /usr/gnu/bin at front,
3# adds /usr/X11/bin, /usr/sbin and /sbin to the end.
4#
5# Use less(1) as the default pager for the man(1) command.
6#
7export PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin
8export PAGER="/usr/bin/less -ins"
9
10#
11# Define default prompt to <username>@<hostname>:<path><"($|#) ">
12# and print '#' for user "root" and '$' for normal users.
13#
14PS1='${LOGNAME}@$(/usr/bin/hostname):$(
15    [[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
16    printf "%s" "${PWD/${HOME}/~}\$ ")'
17