setup/config/profile

56 lines
1.2 KiB
Bash

# profile Default shell profile configuration
#
# Copyright (c) 2003-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
# 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
# use /etc/profile.d/ instead
if [ -r /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
[ "$LC_ALL" ] || LC_ALL=$LANG
export LANG LC_ALL
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
if [ "$UID" = 0 ]; then
PATH=/usr/sbin:/usr/local/sbin:$PATH
fi
export PATH
umask 022
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/usr/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