setup/config/profile

68 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2011-04-26 13:22:53 +02:00
# profile Default shell profile configuration
#
2011-06-07 17:33:06 +02:00
# Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
2011-04-26 13:22:53 +02:00
# Copyright (c) 2003-2008 by Davide Madrisan <davide.madrisan@gmail.com>
#
# WARNING:
# do not modify this file as it will be replaced upon package updates
2011-06-07 17:35:57 +02:00
# use /etc/profile.d/ instead
2011-04-26 13:22:53 +02:00
if [ -r /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
2011-06-07 17:33:06 +02:00
[ "$LC_ALL" ] || LC_ALL=$LANG
export LANG LC_ALL
2011-04-26 13:22:53 +02:00
fi
if [ -r /etc/sysconfig/proxy ]; then
. /etc/sysconfig/proxy
export http_proxy https_proxy ftp_proxy
fi
loginsh=1
# Make path more comfortable
PATH=/bin:/usr/bin:/usr/local/bin
if [ "$UID" = 0 ]; then
[ -d /opt/gnome/sbin ] && PATH=$PATH:/opt/gnome/sbin
[ -d /opt/kde/sbin ] && PATH=$PATH:/opt/kde/sbin
[ -d /opt/kde3/sbin ] && PATH=$PATH:/opt/kde3/sbin
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
fi
for dir in /opt/bin \
/opt/gnome/bin \
/opt/kde/bin \
/opt/kde3/bin \
/usr/lib/qt3/bin
do
[ -d "$dir" ] && PATH=$PATH:$dir
done
unset dir
export PATH
umask 022
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
export USER LOGNAME MAIL HISTCONTROL HOSTNAME HISTSIZE
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export INPUTRC
# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N
export NLSPATH
for f in /etc/profile.d/*.sh ; do
[ -r $f ] && . $f
done
unset f
export PATH