Include also the alias for `sources.redhat.com': sourceware.org
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 0a2a882..51c35cb 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -84,8 +84,8 @@ _bash_profile_addpath -s JAVA_HOME       "/usr/java"
 _bash_profile_addpath -s JAVA_HOME       "/usr/local/java"
 uname_p="`uname -p 2>/dev/null || uname -m`"
 [ "`uname`" = "SunOS" ] && _bash_profile_addpath -f LD_LIBRARY_PATH "$HOME/Netscape/dist/lib"
-for family in "$HOME";do
-       for arch in "$family" $family/$uname_p;do
+for family in $HOME;do
+       for arch in $family $family/$uname_p;do
                # Do not "-f": We use /net !
                _bash_profile_addpath PATH            "$arch/bin"
                _bash_profile_addpath PATH            "$arch/OpenOffice.org"
@@ -145,6 +145,7 @@ alias cal='cal -m'
 alias vncreadonly='vncviewer -FullColor -Shared -ViewOnly'
 alias diff='diff -u'
 alias rpmqf='rpm --qf "%{name}-%{version}-%{release}.%{arch}\n"'
+alias rpmbuildlocal='rpmbuild --define "_topdir $PWD" --define "_builddir $PWD" --define "_rpmdir $PWD" --define "_sourcedir $PWD" --define "_specdir $PWD" --define "_srcrpmdir $PWD"'
 alias gdbn='gdb -nx --command=~/.gdbinit'
 
 # '2>/dev/null' to prevent: unalias: x: not found
@@ -233,11 +234,14 @@ function mi { (
        ); };export -f mi
 function ctags {(unset ctags;
        if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
-               find -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \
+               find -name testsuite -prune -o \
+                               -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \
                                                -o -name "*.[chC]" \
                                                -o -name "*.cc"    \
+                                               -o -name "*.cxx"   \
                                                -o -name "*.java"  \
                                                -o -name "*.p[lm]" \
+                                               -o -name "*.py" \
                                                ')' \
                                |ctags --file-tags -L - "$@"
        fi; );}; export -f ctags
@@ -253,7 +257,7 @@ function diffc { diff -u "$@"|grep -v '^\(Only in \|Binary files\)'; }; export -
 function diffi { diffc -X ~/.diffi.list "$@"; }; export -f diffi
 function cvs {(unset cvs;
        local _opts _opts_d _now _line _o
-       if grep -iw sources.redhat.com CVS/Root &>/dev/null;then _opts_d="";else _opts_d="-d";fi
+       if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' CVS/Root &>/dev/null;then _opts_d="";else _opts_d="-d";fi
        _now=false
        _line=""
        _opts=""