3 # System wide environment and startup programs
4 # Functions and aliases go into the shells dependent startup files
6 PATH="$PATH:/usr/X11R6/bin"
8 if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
16 MAIL="/var/mail/$USER"
18 HOSTNAME=`/bin/hostname`
19 HISTFILE="$HOME/.history"
24 # Setup the environment for varius shells
27 if [ "$TERM" = "" -o "$TERM" = "unknown" ]; then
32 if [ "$SH" = "sh" ]; then
33 if [ ! -n KSH_VERSION ]; then
35 elif [ ! -n BASH_VERSION ]; then
45 PS1='[${LOGNAME-$USER}@${HOSTNAME}`
46 if [ "$PWD" = "${PWD##$HOME}" ]; then
49 echo '~'${PWD##$HOME};
55 # Setup some of the most basic editing functions
56 # to work properly under different termnal emulators.
59 nxterm|xterm|xterm-color|rxvt)
60 bind '^[[H'=beginning-of-line
61 bind '^[[F'=end-of-line
64 bind '^[1~'=beginning-of-line
65 bind '^[4~'=end-of-line
75 export PATH PS1 PS2 HOSTNAME HISTFILE HISTSIZE HISTFILESIZE USER LOGNAME MAIL
77 for i in /etc/profile.d/*.sh ; do