we want to override any original directories, place local dirs first!
[nethome.git] / .bash_profile
1 function _bash_profile_addpath  # variable,dirpathname
2 {
3         if [ '!' -d "$2" ];then return;fi
4         if [ -z "`eval "echo \\${$1}"`" ];then
5                 eval "$1='$2'"
6         else
7                 # we want to override any original directories, place dirpathname first!
8                 eval "$1=\"$2:\${$1}\""
9         fi
10         export "$1"
11 }
12
13 _bash_profile_addpath PATH            "$HOME/bin"
14 _bash_profile_addpath LD_LIBRARY_PATH "$HOME/lib"
15 _bash_profile_addpath MANPATH         "$HOME/man"
16 _bash_profile_addpath PERLLIB         "$HOME/lib/perl5/site_perl"
17 _bash_profile_addpath PERLLIB         "$HOME/lib/perl5/site_perl/`perl -V:version|cut -d "'" -f 2`"
18
19 export IGNOREEOF=10
20 export TMOUT=900
21 export EDITOR='vim'
22 export LC_CTYPE=cs_CZ.ISO-8859-2
23 export BASH_ENV="$HOME/.bashrc";source "$BASH_ENV"
24 finger
25 m