Created
June 10, 2013 03:07
-
-
Save ysasaki/5746281 to your computer and use it in GitHub Desktop.
moduleのsourceを直接開くfunction。適当な場所に保存して、
> echo "source ~/.zshrc.perlsource" >> ~/.zshrc.mine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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