summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}