+CFLAGS settings options enhanced
[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 [ -n "$3" -o -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 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
23
24 alias ls='ls -bF'
25 alias l='ls -lbF'
26 alias maple="ssh -t vega.fjfi.cvut.cz maple"
27 #alias cc='cc -I/home/short/include'
28 alias vi='vim'
29
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
34
35 export IGNOREEOF=10
36 export TMOUT=900
37 export EDITOR='vim'
38 export LC_CTYPE=cs_CZ.ISO-8859-2
39
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
44
45 ulimit -c 0
46
47 if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi