From 5b1df99651e9d39198d736da451ab711f8ef65c9 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 17 May 2016 17:13:55 +0100 Subject: nicer perldoc --- .bash_profile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 8cad899..eb0bd75 100644 --- a/.bash_profile +++ b/.bash_profile @@ -21,10 +21,14 @@ function se() { emacsclient "${@/#//sudo::}" } +function perldoc() { + cpandoc "$@" +} + function pm() { local fn local ex - fn="$(perldoc -l "$1")" + fn="$(perldoc -lm "$1")" ex=$? if [[ $ex != 0 ]]; then return $ex @@ -32,5 +36,7 @@ function pm() { emacsclient -c -n "$fn" } +export PERLDOC='-MPod::Text::Color::Delight' + fortune -- cgit v1.2.3