homebrew-core/Formula/zsh-syntax-highlighting.rb
Brett Koonce 1557eaac4d zsh-syntax-highlighting 0.2.0
Closes Homebrew/homebrew#21945.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-08-16 23:25:28 -07:00

30 lines
952 B
Ruby

require 'formula'
class ZshSyntaxHighlighting < Formula
homepage 'https://github.com/zsh-users/zsh-syntax-highlighting'
url 'https://github.com/zsh-users/zsh-syntax-highlighting/archive/0.2.0.tar.gz'
sha1 '7c37129294aaf7cd61548ccfdf76cb478df3602f'
head 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
def install
(share/'zsh-syntax-highlighting').install Dir['*']
end
def caveats
<<-EOS.undent
To activate the syntax highlighting, add the following at the end of your .zshrc:
source #{HOMEBREW_PREFIX}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
You will also need to force reload of your .zshrc:
source ~/.zshrc
Additionally, if your receive "highlighters directory not found" error message,
you may need to add the following to your .zshenv:
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=#{HOMEBREW_PREFIX}/share/zsh-syntax-highlighting/highlighters
EOS
end
end