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