# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/sysfiles/etc_profile.txt # Copyright (C) 2004 - 2023 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-COPYRIGHT-NOTE-END --- # set the PATH-variable if [ -w / -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 /opt/*/bin /opt/*/sbin $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 /opt/*/bin $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 ../..' if type -p dircolors > /dev/null; then eval `dircolors -b /etc/dircolors` [ -w / ] && alias ls="ls --color=auto -a" || alias ls="ls --color=auto" fi 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