Last active
December 16, 2015 07:58
-
-
Save yasuyk/5401955 to your computer and use it in GitHub Desktop.
install Zsh On-Line Help
This file contains hidden or 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
# -*- shell-script -*- | |
# For more information, see the following URL. | |
# http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Accessing-On_002dLine-Help | |
HELPDIR=~/.zsh_help | |
function init-help () { | |
[ -n "`alias run-help`" ] && unalias run-help | |
autoload run-help | |
} | |
function install-zsh-online-help () { | |
PREVIOUS_DIR=`pwd` | |
mkdir -p $HELPDIR | |
cd $HELPDIR | |
wget http://sourceforge.net/projects/zsh/files/zsh/$ZSH_VERSION/zsh-$ZSH_VERSION.tar.gz | |
tar xf zsh-$ZSH_VERSION.tar.gz | |
command rm zsh-$ZSH_VERSION.tar.gz | |
man zshall | colcrt - | perl zsh-$ZSH_VERSION/Util/helpfiles | |
command rm -r zsh-$ZSH_VERSION | |
init-help | |
cd $PREVIOUS_DIR | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment