본문 바로가기

OS

[Solaris] .profile

#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */

# The profile that all logins get before using their own .profile.

trap "" 2 3
export LOGNAME PATH

if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi

# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.

alias ll="ls -alF"
alias ls="ls -F"
set -o vi
tty -s && stty cs8 -istrip defeucw

case "$0" in
-sh | -ksh | -jsh | -bash)

if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2

/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac

case "$0" in
bash | -bash)
PS1="\u@\h \w \\$ "; export PS1
;;
sh | -sh)
PS1="`/usr/ucb/whoami`@`hostname` "
case `/usr/xpg4/bin/id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
;;
esac

EDITOR=vi; export EDITOR
CC=CC; export CC
PATH=./:/usr/local/bin:/opt/SUNWspro/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin; export PATH
LD_LIBRARY_PATH=/usr/local/xml/lib:/usr/lib:/usr/local/lib:/usr/ucblib:/usr/ccs/lib; export LD_LIBRARY_PATH

TERM=sun-color; export TERM

umask 022
trap 2 3