Skip to content

Instantly share code, notes, and snippets.

@ysasaki
Created June 10, 2013 03:07
Show Gist options
  • Save ysasaki/5746281 to your computer and use it in GitHub Desktop.
Save ysasaki/5746281 to your computer and use it in GitHub Desktop.
moduleのsourceを直接開くfunction。適当な場所に保存して、 > echo "source ~/.zshrc.perlsource" >> ~/.zshrc.mine
perlsource() {
if [ $# -ne 0 ]; then
perldoc -m $1 | view - +"set filetype=perl"
else
echo "Usage: perlsource MODULE"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment