setup/config/profile

56 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2011-04-26 13:22:53 +02:00
# profile Default shell profile configuration
#
# Copyright (c) 2003-2021 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=/usr/bin:/usr/local/bin
2011-04-26 13:22:53 +02:00
if [ "$UID" = 0 ]; then
PATH=/usr/sbin:/usr/local/sbin:$PATH
2011-04-26 13:22:53 +02:00
fi
export PATH
umask 022
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/usr/bin/hostname`
2011-04-26 13:22:53 +02:00
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