summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-06-13 02:17:04 -0500
committerJesse Luehrs <doy@tozt.net>2011-06-13 02:17:04 -0500
commit5b30733851ce89ae95940216cf99ea2b37563315 (patch)
tree9a250ce346116e06fe59f82e04935db8205f3c1b /bashrc
parent6ab6d4d92fa18b578a50f738817e050f55458998 (diff)
downloadconf-5b30733851ce89ae95940216cf99ea2b37563315.tar.gz
conf-5b30733851ce89ae95940216cf99ea2b37563315.zip
use cpandoc if available
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc7
1 files changed, 7 insertions, 0 deletions
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
}