summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/profile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /base/aaabasicfs/profile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'base/aaabasicfs/profile')
-rw-r--r--base/aaabasicfs/profile72
1 files changed, 0 insertions, 72 deletions
diff --git a/base/aaabasicfs/profile b/base/aaabasicfs/profile
deleted file mode 100644
index 96b7d6deb..000000000
--- a/base/aaabasicfs/profile
+++ /dev/null
@@ -1,72 +0,0 @@
-# Begin /etc/profile
-# Written for Beyond Linux From Scratch
-# by James Robertson <jameswrobertson@earthlink.net>
-# modifications by Dagmar d'Surreal <rivyqntzne@pbzpnfg.arg>
-
-# System wide environment variables and startup programs.
-
-# System wide aliases and functions should go in /etc/bashrc. Personal
-# environment variables and startup programs should go into
-# ~/.bash_profile. Personal aliases and functions should go into
-# ~/.bashrc.
-
-# Functions to help us manage paths. Second argument is the name of the
-# path variable to be modified (default: PATH)
-pathremove () {
- local IFS=':'
- local NEWPATH
- local DIR
- local PATHVARIABLE=${2:-PATH}
- for DIR in ${!PATHVARIABLE} ; do
- if [ "$DIR" != "$1" ] ; then
- NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
- fi
- done
- export $PATHVARIABLE="$NEWPATH"
-}
-
-pathprepend () {
- pathremove $1 $2
- local PATHVARIABLE=${2:-PATH}
- export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
-}
-
-pathappend () {
- pathremove $1 $2
- local PATHVARIABLE=${2:-PATH}
- export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
-}
-
-
-# Set the initial path
-export PATH=/bin:/usr/bin
-
-if [ $EUID -eq 0 ] ; then
- pathappend /sbin:/usr/sbin
- unset HISTFILE
-fi
-
-# Setup some environment variables.
-export HISTSIZE=1000
-export HISTIGNORE="&:[bf]g:exit"
-
-# Setup a red prompt for root and a green one for users.
-NORMAL="\[\e[0m\]"
-RED="\[\e[1;31m\]"
-GREEN="\[\e[1;32m\]"
-if [[ $EUID == 0 ]] ; then
- PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
-else
- PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
-fi
-
-for script in /etc/profile.d/*.sh ; do
- if [ -r $script ] ; then
- . $script
- fi
-done
-
-# Now to clean up
-unset pathremove pathprepend pathappend
-
-# End /etc/profile