|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/base/sysfiles/etc_profile.txt
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
# 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
|
|
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 /opt/*/games $HOME/bin
|
|
do
|
|
[ -d $x ] && export PATH="$PATH:$x"
|
|
done
|
|
fi
|
|
export PATH
|
|
|
|
# set the prompts for bash and ksh
|
|
#
|
|
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# '
|
|
fi
|
|
|
|
# set some enviroment-variables
|
|
#
|
|
export EDITOR="vi"
|
|
export PAGER="less -R"
|
|
export BLOCKSIZE=K
|
|
export INPUTRC="/etc/inputrc"
|
|
|
|
# set the MANPATH variable
|
|
#
|
|
export MANPATH=/usr/share/man
|
|
for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man
|
|
do [ -d $x ] && MANPATH="$MANPATH:$x" ; done
|
|
|
|
# set the INFOPATH variable
|
|
#
|
|
export INFOPATH=/usr/share/info
|
|
for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info
|
|
do [ -d $x ] && INFOPATH="$INFOPATH:$x" ; done
|
|
|
|
# set the PKG_CONFIG_PATH variable
|
|
#
|
|
export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
|
|
for x in /usr/X11/lib /usr/local/lib /opt/*/lib $HOME/lib
|
|
do [ -d $x/pkgconfig ] && PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$x/pkgconfig" ; done
|
|
|
|
# some usefull aliases (only if this is an interactive shell)
|
|
#
|
|
if [ "$PS1" ] ; then
|
|
alias -- +='pushd .'
|
|
alias -- -='popd'
|
|
alias ..='cd ..'
|
|
alias ...='cd ../..'
|
|
|
|
eval `dircolors -b /etc/dircolors`
|
|
[ -w / ] && alias ls="ls --color=auto -a" ||
|
|
alias ls="ls --color=auto"
|
|
alias l="ll -a" ; alias ll="ls -l"
|
|
|
|
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
|
|
|