diff options
author | Frankie McGough <fmcgough@live.co.uk> | 2016-09-17 13:15:57 +0100 |
---|---|---|
committer | Frankie McGough <fmcgough@live.co.uk> | 2016-09-17 13:15:57 +0100 |
commit | 6a52a4990941983a7befa61ee8c8c15549e80164 (patch) | |
tree | 757649ac0cf3c034e0984c7922ba5f02a7cb9be2 /README.md | |
parent | 4e591803530483c2fa10bccb7e3c6bea42d1e31d (diff) | |
download | cbt-6a52a4990941983a7befa61ee8c8c15549e80164.tar.gz cbt-6a52a4990941983a7befa61ee8c8c15549e80164.tar.bz2 cbt-6a52a4990941983a7befa61ee8c8c15549e80164.zip |
Add documentation to README for installing zsh completion
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -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) +``` |