+function ctags
authorshort <>
Thu, 14 Feb 2002 17:01:51 +0000 (17:01 +0000)
committershort <>
Thu, 14 Feb 2002 17:01:51 +0000 (17:01 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 2a5b6cc..fa27a2c 100644 (file)
--- 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