Skip to content

Instantly share code, notes, and snippets.

View RevChas's full-sized avatar

Charles Herbig RevChas

View GitHub Profile
@sirhc
sirhc / pd.bash
Created June 21, 2013 17:35
Try a bunch of perldoc commands to find documentation, finally failing over to man.
#!/bin/bash
#
# Vim configuration for pd (~/.vim/after/ftplugin/perl.vim):
# :setlocal keywordprg=pd
# :setlocal iskeyword+=:,$,@,%
pd=$(type -P cpandoc)
pd=${pd:-"$(type -P perldoc)"}
$pd -f "$@" 2>/dev/null && exit