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