From 7c1690f5b0a0872947fa03b420510eb7cd39233e Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Thu, 30 Dec 2010 16:35:55 +0100 Subject: [PATCH] Issue 7: Add instructions for using with oh-my-zsh --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index ff4fbf5..6f2a580 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,12 @@ zsh-syntax-highlighting An attempt at providing [Fish shell](http://www.fishshell.org) like syntax highlighting for [Zsh](http://www.zsh.org). + ## Usage + +### From your ~/.zshrc + Download the script or clone this repository: git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git @@ -18,11 +22,30 @@ Re-open your terminal, or just reload it to take changes into account: source ~/.zshrc +### With [oh-my-zsh](http://github.com/robbyrussell/oh-my-zsh) + +Download the script or clone this repository as a oh-my-zsh plugin: + + cd ~/.oh-my-zsh/plugins/ + git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git + cd zsh-syntax-highlighting + ln -s zsh-syntax-highlighting.zsh zsh-syntax-highlighting.plugin.zsh + +Update your `~/.zshrc` so that the script is sourced: + + plugins=(zsh-syntax-highlighting) + +Re-open your terminal, or just reload it to take changes into account: + + source ~/.zshrc + + ## References * [zsh-users mailing list thread](http://www.zsh.org/mla/users/2010/msg00692.html) * [Gist 586698](http://gist.github.com/586698) and forks + ## Authors / Greetings * [Roy Zuo](http://github.com/roylez)