summaryrefslogtreecommitdiffstats
path: root/aaabasicfs/bash_profile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
commit9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch)
treeae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /aaabasicfs/bash_profile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'aaabasicfs/bash_profile')
-rw-r--r--aaabasicfs/bash_profile36
1 files changed, 36 insertions, 0 deletions
diff --git a/aaabasicfs/bash_profile b/aaabasicfs/bash_profile
new file mode 100644
index 000000000..f0a4a1419
--- /dev/null
+++ b/aaabasicfs/bash_profile
@@ -0,0 +1,36 @@
+# Begin ~/.bash_profile
+# Written for Beyond Linux From Scratch
+# by James Robertson <jameswrobertson@earthlink.net>
+# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
+
+# Personal environment variables and startup programs.
+
+# Personal aliases and functions should go in ~/.bashrc. System wide
+# environment variables and startup programs are in /etc/profile.
+# System wide aliases and functions are in /etc/bashrc.
+
+append () {
+ # First remove the directory
+ local IFS=':'
+ local NEWPATH
+ for DIR in $PATH; do
+ if [ "$DIR" != "$1" ]; then
+ NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
+ fi
+ done
+
+ # Then append the directory
+ export PATH=$NEWPATH:$1
+}
+
+if [ -f "$HOME/.bashrc" ] ; then
+ source $HOME/.bashrc
+fi
+
+if [ -d "$HOME/bin" ] ; then
+ append $HOME/bin
+fi
+
+unset append
+
+# End ~/.bash_profile