xref: /illumos-gate/usr/src/cmd/nsadmin/dot-profile.sh (revision 269e59f9a28bf47e0f463e64fc5af4a408b73b21)
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