From 5b30733851ce89ae95940216cf99ea2b37563315 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 13 Jun 2011 02:17:04 -0500 Subject: use cpandoc if available --- bashrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 03a45f5..31c5d2b 100644 --- a/bashrc +++ b/bashrc @@ -96,6 +96,13 @@ alias ..='cd ..' alias dotperl="rsync -av lib/* ${HOME}/perl5/local/" alias clean_packages='sudo pacman -Rsn $(pacman -Qqdt)' alias pm="find lib -type f | sort" +function perldoc { + if type -P cpandoc > /dev/null 2>&1; then + cpandoc "$*" + else + command perldoc "$*" + fi +} function incoming { cpanm http://pause.cpan.org/incoming/$1.tar.gz } -- cgit v1.2.3-54-g00ecf