diff options
Diffstat (limited to 'usr/src/cmd/nsadmin/etc-profile.sh')
-rw-r--r-- | usr/src/cmd/nsadmin/etc-profile.sh | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/usr/src/cmd/nsadmin/etc-profile.sh b/usr/src/cmd/nsadmin/etc-profile.sh index a74965d21a..035e8a3025 100644 --- a/usr/src/cmd/nsadmin/etc-profile.sh +++ b/usr/src/cmd/nsadmin/etc-profile.sh @@ -37,10 +37,24 @@ then export TERM fi +# +# use less(1) as the default pager for the man(1) command. +# +PAGER="/usr/bin/less -ins" +export PAGER + # Login and -su shells get /etc/profile services. # -rsh is given its environment in its .profile. case "$0" in +-bash) + # set prompt for bash + PS1="\u@\h:\w\\$ " + export PS1 + ;; +esac + +case "$0" in -sh | -ksh | -ksh93 | -jsh | -bash | -zsh) if [ ! -f .hushlogin ] @@ -53,12 +67,12 @@ case "$0" in /bin/mail -E case $? in - 0) + 0) echo "You have new mail." - ;; - 2) + ;; + 2) echo "You have mail." - ;; + ;; esac fi esac |