summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2019-02-02 14:13:36 +0000
committerdakkar <dakkar@thenautilus.net>2019-02-02 14:13:36 +0000
commit4d42055b4b815ee2eabfd3db6035f65b5a8469a6 (patch)
tree3a1b1ba69c8e87ace70e5a8aca2cca566b985862
parentnautilus has no wifi (diff)
downloaddotfiles-4d42055b4b815ee2eabfd3db6035f65b5a8469a6.tar.gz
dotfiles-4d42055b4b815ee2eabfd3db6035f65b5a8469a6.tar.bz2
dotfiles-4d42055b4b815ee2eabfd3db6035f65b5a8469a6.zip
use perldoc if no cpandoc
-rw-r--r--.bash_profile6
1 files changed, 5 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 86f21c0..c0a4f1b 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
}