X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=ec981988cacacc08024344f227f65f91418f259e;hb=f1e71464450626d1ea212ebcab60eb13ba331024;hp=608b6f271bb701a66bd131bc88031a48b4611a2d;hpb=9b9621f9ae309adb54ef619faed1f62447044cb4;p=nethome.git diff --git a/.bashrc b/.bashrc index 608b6f2..ec98198 100644 --- a/.bashrc +++ b/.bashrc @@ -10,7 +10,8 @@ if [ -n "$_home_short_dotbashrc_norc" -o "${TERM#norc-}" != "$TERM" ];then export _home_short_dotbashrc=true fi -if [ -z "$_home_short_dotbashrc" ];then +# "$PS1" for interactive shells detection. +if [ -n "$PS1" -a -z "$_home_short_dotbashrc" ];then # We permit later reinitialization by unsetting it. # During our execution we forbid spawning to prevent deadlock by: # source /etc/bashrc @@ -143,6 +144,8 @@ alias cvsignoresall='cvsutil --ignores --workings --print' alias cvsignoresrm='cvsutil --ignores --rm' alias cvsignoresrmall='cvsutil --ignores --workings --rm' alias cvsignoresallrm='cvsutil --ignores --workings --rm' +alias svnignoresall='svn status |sed -n "s/^[?] //p"' +alias svnignoresallrm='svn status |sed -n "s/^[?] //p"|tr "\n" "\0"|xargs -0 rm -rf' [ "`uname`" = "SunOS" -a -x $HOME/bin/rpm-by-pkg ] && alias rpm='rpm-by-pkg' alias disass='objdump -D --target=binary --architecture=i386' alias cal='cal -m' @@ -237,7 +240,7 @@ function mi { ( ); };export -f mi function ctags {(unset ctags; if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else - find -name testsuite -prune -o \ + find -name testsuite -prune -o -name .pc -prune -o -name .svn -o \ -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \ -o -name "*.[chC]" \ -o -name "*.cc" \ @@ -245,8 +248,9 @@ function ctags {(unset ctags; -o -name "*.java" \ -o -name "*.p[lm]" \ -o -name "*.py" \ + -o -name "*.exp" \ ')' \ - |ctags --file-tags -L - "$@" + |ctags --file-tags -L - --langmap=Tcl:+.exp "$@" fi; );}; export -f ctags function ctagsh { ctags "--c-types=+px"; }; export -f ctagsh function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}; export -f cpan