From 70fbf577d3b2fc2c4513ed02ed100c587bbb17c6 Mon Sep 17 00:00:00 2001 From: Damien Flament Date: Wed, 29 May 2013 19:01:47 +0200 Subject: [PATCH] zsh-syntax-highlighting 0.1.3 Fish shell like syntax highlighting for Zsh. Closes Homebrew/homebrew#20138. Signed-off-by: Adam Vandenberg --- Formula/zsh-syntax-highlighting.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/zsh-syntax-highlighting.rb diff --git a/Formula/zsh-syntax-highlighting.rb b/Formula/zsh-syntax-highlighting.rb new file mode 100644 index 0000000000..cbdd10caea --- /dev/null +++ b/Formula/zsh-syntax-highlighting.rb @@ -0,0 +1,30 @@ +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.1.3.zip' + sha1 '889b041af29ff1aab0a8e3a3b99ba24f02ddc881' + + 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 + + Additionnaly, 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