Skip to content

Instantly share code, notes, and snippets.

@yasuyk
Last active December 16, 2015 07:58
Show Gist options
  • Save yasuyk/5401955 to your computer and use it in GitHub Desktop.
Save yasuyk/5401955 to your computer and use it in GitHub Desktop.
install Zsh On-Line Help
# -*- 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