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.
 
 
 
 
 
 

86 lines
2.3 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../sysfiles/etc_profile.txt
# Copyright (C) 2006 - 2009 The OpenSDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# set the PATH-variable
if [ -w / -o "$USER" = "root" -o "$UID" = 0 ] ; then
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="$x:$PATH"
done
else
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="$x:$PATH"
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
# 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
[ -f $x ] && . $x
done
unset x