mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
capistrano: add README (#7376)
This commit is contained in:
parent
78935f7cf7
commit
5c91cfcb06
2 changed files with 16 additions and 2 deletions
14
plugins/capistrano/README.md
Normal file
14
plugins/capistrano/README.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Capistrano
|
||||||
|
|
||||||
|
This plugin provides completion for [Capistrano](https://capistranorb.com/).
|
||||||
|
|
||||||
|
To use it add capistrano to the plugins array in your zshrc file.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
plugins=(... capistrano)
|
||||||
|
```
|
||||||
|
|
||||||
|
For a working completion use the `capit` command instead of `cap`, because cap is a
|
||||||
|
[reserved word in zsh](http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module).
|
||||||
|
|
||||||
|
`capit` automatically runs cap with bundler if a Gemfile is found.
|
|
@ -1,7 +1,7 @@
|
||||||
# Added `shipit` because `cap` is a reserved word. `cap` completion doesn't work.
|
# Added `capit` because `cap` is a reserved word. `cap` completion doesn't work.
|
||||||
# http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module
|
# http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module
|
||||||
|
|
||||||
func capit() {
|
function capit() {
|
||||||
if [ -f Gemfile ]
|
if [ -f Gemfile ]
|
||||||
then
|
then
|
||||||
bundle exec cap $*
|
bundle exec cap $*
|
||||||
|
|
Loading…
Reference in a new issue