diff options
author | piernov <piernov@piernov.org> | 2012-01-22 11:53:58 +0100 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-01-22 11:53:58 +0100 |
commit | 656378eb13dd8c1af44a368e7dfee3333eb055a2 (patch) | |
tree | 9707d7a6d1af19d5c1d8431821232ae81ce42d85 /aaabasicfs/bash_profile | |
parent | 9626427c1a1d9c292fc519810c13b9a8073e777f (diff) | |
parent | 8d576551b5c270c65fe06443b7295d73cc662064 (diff) | |
download | nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.gz nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.bz2 nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.xz nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.zip |
Merged with http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe → Repository splitted → nutyx-pakxe
Diffstat (limited to 'aaabasicfs/bash_profile')
-rw-r--r-- | aaabasicfs/bash_profile | 36 |
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 |