capistrano.plugin.zsh 257 B

123456789101112
  1. # Added `capit` because `cap` is a reserved word. `cap` completion doesn't work.
  2. # http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module
  3. function capit() {
  4. if [ -f Gemfile ]
  5. then
  6. bundle exec cap $*
  7. else
  8. cap $*
  9. fi
  10. }