# hdw - linux /etc/profile (copied from ROCK Linux) # # set the PATH-variable if [ -w / ] ; then PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" for x in /usr/X11/sbin /usr/X11/bin /usr/games /usr/local/games \ /opt/*/sbin /opt/*/bin $HOME/sbin $HOME/bin do [ -d $x ] && export PATH="$PATH:$x" done else PATH='/bin:/usr/bin:/usr/local/bin' for x in /usr/X11/bin /usr/games /usr/local/games /opt/*/bin $HOME/bin do [ -d $x ] && export PATH="$PATH:$x" done fi export PATH # set the prompts for bash and ksh if [ ".$BASH" != . ] ; then export PS1='\u@\h:\w\$ ' export PS2='> ' ; export PS4='+ ' elif [ ".$KSH_VERSION" != . ] ; then [ -w / ] && PS1='$USER:$PWD# ' || PS1='$USER:$PWD$ ' export PS2='> ' ; export PS4='+ ' fi # set some enviroment-variables if [ ".$SHELL" = "./bin/sh" ] ; then export "SHELL=/bin/bash" fi export EDITOR="vi" export PAGER="less" export BLOCKSIZE=K # set the MANPATH variable MANPATH=/usr/share/man for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man do [ -d $x ] && export MANPATH="$MANPATH:$x" ; done # set the INFOPATH variable INFOPATH=/usr/share/info for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info do [ -d $x ] && export INFOPATH="$INFOPATH:$x" ; done # set colors for ls eval `dircolors -b /etc/dircolors` # some usefull aliases (only if this is an interactive shell) if [ "$PS1" ] ; then alias -- +='pushd .' alias -- -='popd' alias ..='cd ..' alias ...='cd ../..' alias l="ll -a" alias ll="ls -l" if [ -w / ] ; then alias ls="ls --color=auto -a" else alias ls="ls --color=auto" fi alias which="type -p" alias rehash="hash -r" fi # include local profiles for x in /etc/profile.d/* /etc/conf/profile ; do [ -f $x ] && . $x done unset x