From 426fa1eb779a5d4b29ffaf7d552b4a01fc0cab61 Mon Sep 17 00:00:00 2001 From: short <> Date: Tue, 24 May 2005 09:07:47 +0000 Subject: [PATCH] ctags(): Ignore "tags"/"TAGS" files. +$Id$. --- .bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 2672476..ed50135 100644 --- 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" \ -- 1.8.3.1