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