ctags(): Ignore "tags"/"TAGS" files.
authorshort <>
Tue, 24 May 2005 09:07:47 +0000 (09:07 +0000)
committershort <>
Tue, 24 May 2005 09:07:47 +0000 (09:07 +0000)
+$Id$.

.bashrc

diff --git a/.bashrc b/.bashrc
index 2672476..ed50135 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,3 +1,6 @@
+# $Id$
+
+
 if [ -n "$_home_short_dotbashrc_norc" -o "${TERM#norc-}" != "$TERM" ];then
        # We could get executed twice:
        export _home_short_dotbashrc_norc=true
@@ -195,7 +198,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 -type f -a '(' -false \
+               find -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \
                                                -o -name "*.[chC]" \
                                                -o -name "*.cc"    \
                                                -o -name "*.java"  \