summaryrefslogtreecommitdiffstats
path: root/abs/core/filesystem/profile
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/filesystem/profile
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/filesystem/profile')
-rw-r--r--abs/core/filesystem/profile57
1 files changed, 57 insertions, 0 deletions
diff --git a/abs/core/filesystem/profile b/abs/core/filesystem/profile
new file mode 100644
index 0000000..d18b99a
--- /dev/null
+++ b/abs/core/filesystem/profile
@@ -0,0 +1,57 @@
+#
+# /etc/profile
+#
+# This file is intended to be used for ALL common
+# Bourne-compatible shells. Shell specifics should be
+# handled in /etc/profile.$SHELL where $SHELL is the name
+# of the binary being run (discounting symlinks)
+#
+# Sections taken from SuSe's /etc/profile
+# Note the explicit use of 'test' to cover all bases
+# and potentially incompatible shells
+
+#Determine our shell without using $SHELL, which may lie
+shell="sh"
+if test -f /proc/mounts; then
+ case $(/bin/ls -l /proc/$$/exe) in
+ *bash) shell=bash ;;
+ *dash) shell=dash ;;
+ *ash) shell=ash ;;
+ *ksh) shell=ksh ;;
+ *zsh) shell=zsh ;;
+ esac
+fi
+
+# Load shell specific profile settings
+test -f "/etc/profile.$shell" && . "/etc/profile.$shell"
+
+#Set our umask
+umask 022
+
+# Set our default path
+PATH="/bin:/usr/bin:/sbin:/usr/sbin"
+export PATH
+
+# Some readline stuff that is fairly common
+HISTSIZE=1000
+HISTCONTROL="erasedups"
+
+INPUTRC="/etc/inputrc"
+LESS="-R"
+LC_COLLATE="C"
+
+export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
+
+# Load profiles from /etc/profile.d
+if test -d /etc/profile.d/; then
+ for profile in /etc/profile.d/*.sh; do
+ test -x $profile && . $profile
+ done
+ unset profile
+fi
+
+# Termcap is outdated, old, and crusty, kill it.
+unset TERMCAP
+
+# Man is much better than us at figuring this out
+unset MANPATH