2014-04-05 00:20:01 +00:00
|
|
|
# Added `shipit` because `cap` is a reserved word. `cap` completion doesn't work.
|
2014-01-26 12:18:04 +00:00
|
|
|
# http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcap-Module
|
|
|
|
|
2014-04-05 00:20:01 +00:00
|
|
|
func shipit() {
|
2014-01-26 12:18:04 +00:00
|
|
|
if [ -f Gemfile ]
|
|
|
|
then
|
|
|
|
bundle exec cap $*
|
|
|
|
else
|
|
|
|
cap $*
|
|
|
|
fi
|
|
|
|
}
|