summaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2019-02-02 14:13:36 +0000
committerdakkar <dakkar@thenautilus.net>2019-02-02 14:14:14 +0000
commita7ae0f848fbe22ebda3afe430ccf8c045f05e989 (patch)
tree5b78c535d507ca9fbe6f95f2bd949ca2ba20d7b8 /.bash_profile
parentmore colours in bash (diff)
downloaddotfiles-a7ae0f848fbe22ebda3afe430ccf8c045f05e989.tar.gz
dotfiles-a7ae0f848fbe22ebda3afe430ccf8c045f05e989.tar.bz2
dotfiles-a7ae0f848fbe22ebda3afe430ccf8c045f05e989.zip
use perldoc if no cpandoc
Diffstat (limited to '.bash_profile')
-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
}