mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

98 lines
2.8 KiB

# --- 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 - 2005 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
export PATH=""
for _bindir in $HOME/bin /usr/local/bin /usr/bin /bin /usr/X11/bin \
/usr/games /usr/local/games /opt/*/bin /opt/*/games
do
if [ -d "$_bindir" ]; then
PATH="$PATH${PATH:+:}$_bindir"
fi
if [ -w / ]; then
_sbindir=${_bindir/%\/bin/\/sbin}
if [ "$_bindir" != "$_sbindir" -a -d "$_sbindir" ]; then
PATH="$PATH${PATH:+:}$_sbindir"
fi
fi
done
unset _bindir _sbindir
# 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 useful 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
[[ $x == *.csh ]] && continue
[ -f $x ] && . $x
done
unset x