1 if [ -f /etc/bashrc ];then source /etc/bashrc;fi
3 function _bash_profile_addpath # variable,dirpathname
5 if [ '!' -d "$2" ];then return;fi
6 if [ -n "$3" -o -z "`eval "echo \\${$1}"`" ];then
9 # we want to override any original directories, place dirpathname first!
10 eval "$1=\"$2:\${$1}\""
15 _bash_profile_addpath PATH "$HOME/bin"
16 _bash_profile_addpath PATH "$HOME/sbin"
17 _bash_profile_addpath LD_LIBRARY_PATH "$HOME/lib"
18 _bash_profile_addpath MANPATH "$HOME/man"
19 _bash_profile_addpath PERLLIB "$HOME/lib/perl5/site_perl"
20 _bash_profile_addpath PERLLIB "$HOME/lib/perl5/site_perl/`perl -V:version|cut -d "'" -f 2`"
21 _bash_profile_addpath CVSROOT "$HOME/cvs" single
22 _bash_profile_addpath CVSROOT "$HOME/pserver/cvs" single
26 alias maple="ssh -t vega.fjfi.cvut.cz maple"
27 #alias cc='cc -I/home/short/include'
30 weberr="/var/log/httpd/error/klokan.error_log"
31 if [ -f "$weberr" ];then alias weberr='tail "$weberr"';fi
32 weblog="/var/log/httpd/klokan.access_log"
33 if [ -f "$weblog" ];then alias weblog='tail -n 20000 "$weblog"|grep "\\(~\\|%7[eE]\\)short"';fi
38 export LC_CTYPE=cs_CZ.ISO-8859-2
40 function cvsdiff { cvs diff "$@" 2>&1| less; }; export -f cvsdiff
41 function cvsdiffi { cvs diff "$@" 2>&1|grep -v '^?'|less; }; export -f cvsdiffi
42 function cvsupdate { cvs update "$@" 2>&1| less; }; export -f cvsupdate
43 function cvsupdatei { cvs update "$@" 2>&1|grep -v '^?'|less; }; export -f cvsupdatei
47 if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi