From 5d589796983e3997f3cfdceec84dfe20e9302ec4 Mon Sep 17 00:00:00 2001 From: short <> Date: Thu, 14 Feb 2002 17:01:51 +0000 Subject: [PATCH] +function ctags --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 2a5b6cc..fa27a2c 100644 --- a/.bashrc +++ b/.bashrc @@ -99,6 +99,10 @@ function edall { function mi { ( set -ex;cd "$1";while true;do test "$PWD" != "/";if [ -e configure.in -o -e Makefile.PL ];then break;fi;cd ..;done;make install; ); };export -f mi +function ctags { + if [ $# != 0 ];then `which ctags` "$@";else + rm -f tags;find -type f -a '(' -name "*.[chC]" -o -name "*.cc" -o -name "*.java" ')'|xargs `which ctags` -a --file-tags + fi; }; export -f ctags ulimit -c 0 set +H -- 1.8.3.1