X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=87684d0855a03a63c27233790e6111785f2acf4f;hp=f401ff25725d661b3bdcbe453351040bced37eea;hb=4c62921e798c89aefd19b34d8e1cc7e25db85822;hpb=5b7268befaa7b1151a7e1fc82c11bc66dfad5b4b diff --git a/.bashrc b/.bashrc index f401ff2..87684d0 100644 --- a/.bashrc +++ b/.bashrc @@ -7,6 +7,9 @@ if [ -n "$_home_short_dotbashrc_norc" -o "${TERM#norc-}" != "$TERM" ];then export _home_short_dotbashrc=true fi +export PERL5LIB="$HOME/perl5/lib/perl5/`uname -m`-linux-thread-multi:$HOME/perl5/lib/perl5"; +export PATH="$HOME/perl5/bin:$PATH"; + # "$PS1" for interactive shells detection. if [ -n "$PS1" -a -z "$_home_short_dotbashrc" ];then # We permit later reinitialization by unsetting it. @@ -96,11 +99,6 @@ _bash_profile_addpath -s CVSROOT "$HOME/pserver/cvs" _bash_profile_addpath -s CVSROOT "$HOME/cvs" _bash_profile_addpath -s ANT_HOME "/usr/local/ant" -for _perldir in $(eval "echo $HOME{/share,/lib{,64}}/perl5{/site_perl,}");do - _bash_profile_addpath -f PERL5LIB "$_perldir" - done -unset _perldir - unset -f _bash_profile_addpath _bash_profile_addpath_fini unset -f _bash_profile_addpath_fini @@ -163,8 +161,11 @@ export IGNOREEOF=10 [ -n "$SSH_TTY" ] && export TMOUT=900 2>/dev/null export EDITOR='vim' [ -x /bin/less ] && export PAGER='/bin/less -MMh5cis' -export PERL_MM_OPT="" -[ "$UID" -ne 0 ] && export PERL_MM_OPT="$PERL_MM_OPT PREFIX=$HOME" + +export PERL_LOCAL_LIB_ROOT="$HOME/perl5"; +export PERL_MB_OPT="--install_base $HOME/perl5"; +export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; + for file in $HOME/.bookmarks.html;do export WWW_HOME="file://$HOME/" [ -r $file ] && export WWW_HOME="file://$file" @@ -337,6 +338,8 @@ function gdbcvscheckout { sourcewarecvscheckout gdb; } function binutilscvscheckout { sourcewarecvscheckout binutils; } function uri_escape { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape $_;'; }; function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; }; +# It cannot be a function - unset does not work for it. +alias youtube-dl='youtube-dl --format 38/37/45/22/44/35/34/18/6/5/17/13' alias fetchmail='n fetchmail' function rpmsrclist {