1 # hdw - linux /etc/profile (copied from ROCK Linux)
4 # set the PATH-variable
7 PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
8 for x in /usr/X11/sbin /usr/X11/bin /usr/games /usr/local/games \
9 /opt/*/sbin /opt/*/bin $HOME/sbin $HOME/bin
11 [ -d $x ] && export PATH="$PATH:$x"
14 PATH='/bin:/usr/bin:/usr/local/bin'
15 for x in /usr/X11/bin /usr/games /usr/local/games /opt/*/bin $HOME/bin
17 [ -d $x ] && export PATH="$PATH:$x"
22 # set the prompts for bash and ksh
24 if [ ".$BASH" != . ] ; then
25 export PS1='\u@\h:\w\$ '
26 export PS2='> ' ; export PS4='+ '
27 elif [ ".$KSH_VERSION" != . ] ; then
28 [ -w / ] && PS1='$USER:$PWD# ' || PS1='$USER:$PWD$ '
29 export PS2='> ' ; export PS4='+ '
32 # set some enviroment-variables
34 if [ ".$SHELL" = "./bin/sh" ] ; then
35 export "SHELL=/bin/bash"
43 # set the MANPATH variable
45 MANPATH=/usr/share/man
46 for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man
47 do [ -d $x ] && export MANPATH="$MANPATH:$x" ; done
49 # set the INFOPATH variable
51 INFOPATH=/usr/share/info
52 for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info
53 do [ -d $x ] && export INFOPATH="$INFOPATH:$x" ; done
56 eval `dircolors -b /etc/dircolors`
58 # some usefull aliases (only if this is an interactive shell)
69 alias ls="ls --color=auto -a"
71 alias ls="ls --color=auto"
75 alias rehash="hash -r"
78 # include local profiles
80 for x in /etc/profile.d/* /etc/conf/profile ; do