summaryrefslogtreecommitdiff
path: root/plugins/capistrano/capistrano.plugin.zsh
diff options
context:
space:
mode:
authorReza <reza@balatarin.com>2011-08-16 13:54:47 -0700
committerReza <reza@balatarin.com>2011-08-16 13:54:47 -0700
commitefa5593f88e552fbd3fde850b283fa43d36f481c (patch)
tree4260363f6812cd7bf0dc257d705cf593401dfb21 /plugins/capistrano/capistrano.plugin.zsh
parentb02094e50fe3cd2e3f8ba911d19257dda047bf48 (diff)
downloadzsh-efa5593f88e552fbd3fde850b283fa43d36f481c.tar.gz
zsh-efa5593f88e552fbd3fde850b283fa43d36f481c.tar.bz2
zsh-efa5593f88e552fbd3fde850b283fa43d36f481c.zip
Rename to _capistrano (completion only)
Diffstat (limited to 'plugins/capistrano/capistrano.plugin.zsh')
-rw-r--r--plugins/capistrano/capistrano.plugin.zsh20
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/capistrano/capistrano.plugin.zsh b/plugins/capistrano/capistrano.plugin.zsh
deleted file mode 100644
index a9db4381b..000000000
--- a/plugins/capistrano/capistrano.plugin.zsh
+++ /dev/null
@@ -1,20 +0,0 @@
-function _cap_does_task_list_need_generating () {
- if [ ! -f .cap_tasks~ ]; then return 0;
- else
- accurate=$(stat -f%m .cap_tasks~)
- changed=$(stat -f%m config/deploy.rb)
- return $(expr $accurate '>=' $changed)
- fi
-}
-
-function _cap () {
- if [ -f config/deploy.rb ]; then
- if _cap_does_task_list_need_generating; then
- echo "\nGenerating .cap_tasks~..." > /dev/stderr
- cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~
- fi
- compadd `cat .cap_tasks~`
- fi
-}
-
-compdef _cap cap