diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-06-13 02:17:04 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-06-13 02:17:04 -0500 |
commit | 5b30733851ce89ae95940216cf99ea2b37563315 (patch) | |
tree | 9a250ce346116e06fe59f82e04935db8205f3c1b /bashrc | |
parent | 6ab6d4d92fa18b578a50f738817e050f55458998 (diff) | |
download | conf-5b30733851ce89ae95940216cf99ea2b37563315.tar.gz conf-5b30733851ce89ae95940216cf99ea2b37563315.zip |
use cpandoc if available
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } |