+function cpan: Wrapper around cpan(1) - calls "install" if some args given
authorshort <>
Mon, 24 Jun 2002 00:24:56 +0000 (00:24 +0000)
committershort <>
Mon, 24 Jun 2002 00:24:56 +0000 (00:24 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 884df1b..df928dd 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -112,6 +112,7 @@ function ctags {(unset ctags;
        if [ $# != 0 ];then ctags "$@";else
                find -type f -a '(' -name "*.[chC]" -o -name "*.cc" -o -name "*.java" ')'|ctags --file-tags -L -
        fi; );}; export -f ctags
+function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}; export -f cpan
 
 ulimit -c 0
 set +H