diff options
| author | Brian Smyth | 2013-06-18 15:50:25 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-19 08:25:15 -0700 |
| commit | 9e3aa8925cf4b03a5b1fda13971dde84e1162c41 (patch) | |
| tree | b51ca1397677d7185ac0134d7f2806967c1928bc /Library | |
| parent | 7e64202a90222492db66979e33d53deec1135393 (diff) | |
| download | homebrew-9e3aa8925cf4b03a5b1fda13971dde84e1162c41.tar.bz2 | |
zsh: generate helpfiles for run-help
Closes #20589.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/zsh.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/zsh.rb b/Library/Formula/zsh.rb index f59e0c254..70d0f253d 100644 --- a/Library/Formula/zsh.rb +++ b/Library/Formula/zsh.rb @@ -35,6 +35,12 @@ class Zsh < Formula "$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)" system "make install" + + # See http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Accessing-On_002dLine-Help + mkdir "helpfiles" do + system "man zshall | colcrt - | perl ../Util/helpfiles" + (share+"zsh/helpfiles").install Dir["*"] + end end def test @@ -50,8 +56,12 @@ class Zsh < Formula non-interactively by scripts. Alternatively, install Zsh with /etc disabled: - brew install --disable-etcdir zsh + + Add the following to your zshrc to access the online help: + unalias run-help + autoload run-help + HELPDIR=#{HOMEBREW_PREFIX}/share/zsh/helpfiles EOS end end |
