# # /etc/profile - Default settings for all bsh/bash/ksh/sh users # WARNING: bsh is supported by THIS script, probably scripts executed from # here don't know this... # # This script is executed before $HOME/.profile when an sh user logs in. # # Created 1999-10-05 by xamu (ISK). # if [ -f /iav/etc/profile ]; then . /iav/etc/profile else # assume /iav is not mounted - use some nice defaults... case "`basename $SHELL`" in "bsh") PS1="/iav is missing - $USER@`hostname`>" export PS1 ;; "bash") export PS1="/iav is missing - \u@\\h:\w>" ;; *) export PS1="/iav is missing - \$USER@`hostname -s`:\$PWD>" ;; esac LD_LIBRARY_PATH=/usr/lib:/lib LD_LIBRARYN32_PATH=/usr/lib32:/lib32 LD_LIBRARY64_PATH=/usr/lib64:/lib64 PATH=/usr/bin:/usr/bsd:/bin:/usr/bin/X11:/usr/local/libexec:/usr/local/bin:/usr/etc:/etc:/usr/sbin:/sbin:/usr/local/sbin export LANG LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARY64_PATH PATH stty intr '^C' echoe stty susp '^Z' echoe # Re-enable CTRL-C/CTRL-Z -- whereever it's been disabled... if [ "`basename $SHELL`" != "bsh" ]; then alias e=exit alias q=logout alias h=history alias d="ls -Fal \!*" alias df="df -k" alias l="ls -Lls \!*" alias m="more \!^" alias ll="ls -ali \!*" alias hd="head -1 \!^" alias p="ps -el" alias wvi="wsh -n VI-\!* -s 80,43 -p 100,100 -c vi \!*" alias win="xwsh -name $USER &" alias pwd="`which pwd`" # View real path with "pwd" if ls --version >/dev/null 2>&1; then alias ls="ls --color" # In case of GNU ls fi if which elvis >/dev/null 2>&1; then # If there is an elvis out there... alias vi="elvis -G termcap" # ...use 'em! fi fi fi