summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/bash_profile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
commit31cae2538311f58c8bba5441313d041436f11ce6 (patch)
treecc1fef0aaed8a6affc57b8abff2f8cf7690bb6c1 /base/aaabasicfs/bash_profile
downloadnutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.gz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.bz2
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.xz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.zip
Ajout de aaabasicfs#2009-1
Diffstat (limited to 'base/aaabasicfs/bash_profile')
-rw-r--r--base/aaabasicfs/bash_profile36
1 files changed, 36 insertions, 0 deletions
diff --git a/base/aaabasicfs/bash_profile b/base/aaabasicfs/bash_profile
new file mode 100644
index 000000000..f0a4a1419
--- /dev/null
+++ b/base/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