capistrano.plugin.zsh 257 Bytes
Newer Older
Erwan ROUSSEL's avatar
Erwan ROUSSEL committed
1
# Added `capit` because `cap` is a reserved word. `cap` completion doesn't work.
2
3
# http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module

Erwan ROUSSEL's avatar
Erwan ROUSSEL committed
4
function capit() {
5
6
7
8
9
10
11
  if [ -f Gemfile ]
  then
    bundle exec cap $*
  else
    cap $*
  fi
}