From 38bdaa392257c530a091a96e60e32671bd069afe Mon Sep 17 00:00:00 2001 From: lace <> Date: Sun, 12 Nov 2006 16:39:01 +0000 Subject: [PATCH] ctags: +ignore 'testsuite' ctags: +.py cvs: Limit non-d only for '/cvs/src' of: sources.redhat.com - Exclude Frysk. --- .bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 5c9fc83..88a0a40 100644 --- a/.bashrc +++ b/.bashrc @@ -233,12 +233,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 @@ -254,7 +256,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:/cvs/src" CVS/Root &>/dev/null;then _opts_d="";else _opts_d="-d";fi _now=false _line="" _opts="" -- 1.8.3.1