variables (and _bash_profile_addpath() stuff) moved: .bash_profile -> .bashrc
[nethome.git] / .bashrc
1 if [ -f /etc/bashrc ];then source /etc/bashrc;fi
2
3 function _bash_profile_addpath  # variable,dirpathname
4 {
5         if [ '!' -d "$2" ];then return;fi
6         if [ -z "`eval "echo \\${$1}"`" ];then
7                 eval "$1='$2'"
8         else
9                 # we want to override any original directories, place dirpathname first!
10                 eval "$1=\"$2:\${$1}\""
11         fi
12         export "$1"
13 }
14
15 _bash_profile_addpath PATH            "$HOME/bin"
16 _bash_profile_addpath LD_LIBRARY_PATH "$HOME/lib"
17 _bash_profile_addpath MANPATH         "$HOME/man"
18 _bash_profile_addpath PERLLIB         "$HOME/lib/perl5/site_perl"
19 _bash_profile_addpath PERLLIB         "$HOME/lib/perl5/site_perl/`perl -V:version|cut -d "'" -f 2`"
20 unset CVSROOT;_bash_profile_addpath CVSROOT "$HOME/pserver/cvs"
21
22 alias ls='ls -bF'
23 alias l='ls -lbF'
24 alias maple="ssh -t vega.fjfi.cvut.cz maple"
25 #alias cc='cc -I/home/short/include'
26 alias vi='vim'
27
28 weberr="/var/log/httpd/error/klokan.error_log"
29 if [ -f "$weberr" ];then alias weberr='tail "$weberr"';fi
30 weblog="/var/log/httpd/klokan.access_log"
31 if [ -f "$weblog" ];then alias weblog='tail -n 20000 "$weblog"|grep "\\(~\\|%7[eE]\\)short"';fi
32
33 export IGNOREEOF=10
34 export TMOUT=900
35 export EDITOR='vim'
36 export LC_CTYPE=cs_CZ.ISO-8859-2
37
38 ulimit -c 0