summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_profile6
1 files changed, 5 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index f2d8ae7..6451c08 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -25,7 +25,11 @@ function pd() {
if [[ $1 == -b ]]; then
firefox "https://metacpan.org/pod/$2"
else
- cpandoc "$@"
+ if type cpandoc &>/dev/null; then
+ cpandoc "$@"
+ else
+ perldoc "$@"
+ fi
fi
}