From 6a52a4990941983a7befa61ee8c8c15549e80164 Mon Sep 17 00:00:00 2001 From: Frankie McGough Date: Sat, 17 Sep 2016 13:15:57 +0100 Subject: Add documentation to README for installing zsh completion --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd51fae..34eb57c 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ class Build(val context: cbt.Context) extends PackageJars { ScalaDependency("com.typesafe.play", "play-json", "2.4.4"), MavenDependency("joda-time", "joda-time", "2.9.2") ) - + override def compile = { println("Compiling...") super.compile @@ -101,7 +101,7 @@ cbt.BasicBuild. A folder `build/` can have its own folder `build/` inside in order to add source or maven dependencies to your build. Eventually -you'll be able to also choose the CBT and Scala versions for +you'll be able to also choose the CBT and Scala versions for target builds. Make sure you extend cbt.BuilBuild instead of cbt.Build, in order to automatically trigger building of the target build. @@ -186,7 +186,7 @@ mkdir ~/.bash_completion.d/ cp shell-integration/cbt-completions.bash ~/.bash_completion.d/ ``` -Add this to you .bashrc +Add this to your .bashrc ``` for f in ~/.bash_completion.d/*; do source $f @@ -197,3 +197,21 @@ Fish shell completions ---------------- copy this line into your fish configuration, on OSX: /.config/fish/config.fish complete -c cbt -a '(cbt taskNames)' + +Zsh completions +--------------- +##### Manual installation +Add the following to your `.zshrc` +``` +source /path/to/cbt/shell-integration/cbt-completions.zsh +``` +##### oh-my-zsh +If using oh-my-zsh, you can install it as a plugin: +``` +mkdir ~/.oh-my-zsh/custom/plugins/cbt +cp shell-integration/cbt-completions.zsh ~/.oh-my-zsh/custom/plugins/cbt/cbt.plugin.zsh +``` +Then enable it in your `.zshrc`: +``` +plugins=( ... cbt) +``` -- cgit v1.2.3