diff options
author | dakkar <dakkar@thenautilus.net> | 2019-02-02 14:13:36 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-02-02 14:13:36 +0000 |
commit | 4d42055b4b815ee2eabfd3db6035f65b5a8469a6 (patch) | |
tree | 3a1b1ba69c8e87ace70e5a8aca2cca566b985862 /.bash_profile | |
parent | nautilus has no wifi (diff) | |
download | dotfiles-4d42055b4b815ee2eabfd3db6035f65b5a8469a6.tar.gz dotfiles-4d42055b4b815ee2eabfd3db6035f65b5a8469a6.tar.bz2 dotfiles-4d42055b4b815ee2eabfd3db6035f65b5a8469a6.zip |
use perldoc if no cpandoc
Diffstat (limited to '.bash_profile')
-rw-r--r-- | .bash_profile | 6 |
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 } |