1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../sysfiles/etc_profile.txt
5 # Copyright (C) 2004 - 2010 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 # set the PATH-variable
18 if [ -w / -o $UID = 0 ] ; then
19 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
20 for x in /usr/X11/bin /usr/X11/sbin /usr/games /usr/local/games \
21 /opt/*/bin /opt/*/sbin /opt/*/games $HOME/bin $HOME/sbin
23 [ -d $x ] && export PATH="$x:$PATH"
26 PATH="/usr/local/bin:/usr/bin:/bin"
27 for x in /usr/X11/bin /usr/games /usr/local/games \
28 /opt/*/bin /opt/*/games $HOME/bin
30 [ -d $x ] && export PATH="$x:$PATH"
35 # set the prompts for bash and ksh
38 PS1='$ ' ; PS2='> ' ; PS4='+ '
39 [ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
40 [ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
41 [ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD$ '
44 # set some enviroment-variables
47 export PAGER="less -R"
49 export INPUTRC="/etc/inputrc"
51 # set the MANPATH variable
53 export MANPATH=/usr/share/man
54 for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man
55 do [ -d $x ] && MANPATH="$MANPATH:$x" ; done
57 # set the INFOPATH variable
59 export INFOPATH=/usr/share/info
60 for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info
61 do [ -d $x ] && INFOPATH="$INFOPATH:$x" ; done
63 # some useful aliases (only if this is an interactive shell)
71 if type -p dircolors > /dev/null; then
72 eval `dircolors -b /etc/dircolors`
73 [ -w / ] && alias ls="ls --color=auto -a" ||
74 alias ls="ls --color=auto"
76 alias l="ll -a" ; alias ll="ls -l"
79 alias rehash="hash -r"
82 # include local profiles
84 for x in /etc/profile.d/* /etc/conf/profile ; do