diff options
author | dakkar <dakkar@thenautilus.net> | 2019-02-02 14:13:36 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-02-02 14:14:14 +0000 |
commit | a7ae0f848fbe22ebda3afe430ccf8c045f05e989 (patch) | |
tree | 5b78c535d507ca9fbe6f95f2bd949ca2ba20d7b8 /.bash_profile | |
parent | more colours in bash (diff) | |
download | dotfiles-a7ae0f848fbe22ebda3afe430ccf8c045f05e989.tar.gz dotfiles-a7ae0f848fbe22ebda3afe430ccf8c045f05e989.tar.bz2 dotfiles-a7ae0f848fbe22ebda3afe430ccf8c045f05e989.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 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 } |