xref: /titanic_41/usr/src/cmd/nsadmin/dot-profile.sh (revision 6a1af1a67532df169a657cce07140be64bdea084)
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