Browse Source

Stefan Paletta:


			
			
				rocklinux
			
			
		
Stefan Paletta 20 years ago
parent
commit
0c41c184a7
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      package/base/sysfiles/etc_profile.txt

+ 8
- 7
package/base/sysfiles/etc_profile.txt

@ -23,18 +23,18 @@
# 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 /opt/*/games $HOME/sbin $HOME/bin
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
for x in /usr/X11/bin /usr/X11/sbin /usr/games /usr/local/games \
/opt/*/bin /opt/*/sbin /opt/*/games $HOME/bin $HOME/sbin
do
[ -d $x ] && export PATH="$PATH:$x"
[ -d $x ] && export PATH="$x:$PATH"
done
else
PATH='/bin:/usr/bin:/usr/local/bin'
PATH="/usr/local/bin:/usr/bin:/bin"
for x in /usr/X11/bin /usr/games /usr/local/games \
/opt/*/bin /opt/*/games $HOME/bin
do
[ -d $x ] && export PATH="$PATH:$x"
[ -d $x ] && export PATH="$x:$PATH"
done
fi
export PATH
@ -45,7 +45,7 @@ if [ "$PS1" ] ; then
PS1='$ ' ; PS2='> ' ; PS4='+ '
[ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
[ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
[ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD# '
[ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD$ '
fi
# set some enviroment-variables
@ -93,6 +93,7 @@ fi
# include local profiles
#
for x in /etc/profile.d/* /etc/conf/profile ; do
[[ $x == *.csh ]] && continue
[ -f $x ] && . $x
done
unset x

Loading…
Cancel
Save