mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Adds support capistrano multistage completion
This commit is contained in:
parent
e2838f75f0
commit
16ae4e127f
2 changed files with 57 additions and 7 deletions
11
plugins/capistrano/capistrano.plugin.zsh
Normal file
11
plugins/capistrano/capistrano.plugin.zsh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Added `xcap` because `cap` is a reserved word. `cap` completion doesn't work.
|
||||
# http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module
|
||||
|
||||
func xcap() {
|
||||
if [ -f Gemfile ]
|
||||
then
|
||||
bundle exec cap $*
|
||||
else
|
||||
cap $*
|
||||
fi
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue