summaryrefslogtreecommitdiffstats
path: root/profile
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-09-11 12:39:51 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-09-11 12:39:51 +0000
commit25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d (patch)
tree9afa5ad3fecc7aca66222da768ba0245ae479d65 /profile
downloadsetup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.gz
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.bz2
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.xz
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.zip
move everything under trunk directory
Diffstat (limited to 'profile')
-rw-r--r--profile36
1 files changed, 36 insertions, 0 deletions
diff --git a/profile b/profile
new file mode 100644
index 0000000..dd4af62
--- /dev/null
+++ b/profile
@@ -0,0 +1,36 @@
+# /etc/profile -*- Mode: shell-script -*-
+# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
+
+loginsh=1
+
+if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
+ PATH=$PATH:/usr/games
+fi
+
+umask 022
+
+USER=`id -un`
+LOGNAME=$USER
+MAIL="/var/spool/mail/$USER"
+HISTCONTROL=ignoredups
+HOSTNAME=`/bin/hostname`
+HISTSIZE=1000
+
+if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
+ INPUTRC=/etc/inputrc
+fi
+
+# 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 PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
+export HISTCONTROL HISTSIZE
+
+for i in /etc/profile.d/*.sh ; do
+ if [ -r $i ]; then
+ . $i
+ fi
+done
+
+unset i