diff options
author | Atem18 <messer.kevin@gmail.com> | 2013-12-01 23:45:55 +0100 |
---|---|---|
committer | Atem18 <messer.kevin@gmail.com> | 2013-12-01 23:45:55 +0100 |
commit | 06bd72f842480d9556a1cc28cc340f1be7e7c79b (patch) | |
tree | baeb90abad8afab94f0535fe8f949b1d8df591be /plugins/rails3/_rails3 | |
parent | 84e178fa3d5e6e5bc36cb353c5c051d4f12ec35d (diff) | |
parent | 5643fac8870c2df284f1ccceab35fb1fe343fa3f (diff) | |
download | zsh-06bd72f842480d9556a1cc28cc340f1be7e7c79b.tar.gz zsh-06bd72f842480d9556a1cc28cc340f1be7e7c79b.tar.bz2 zsh-06bd72f842480d9556a1cc28cc340f1be7e7c79b.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugins/rails3/_rails3')
-rw-r--r-- | plugins/rails3/_rails3 | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/plugins/rails3/_rails3 b/plugins/rails3/_rails3 deleted file mode 100644 index 97915e68b..000000000 --- a/plugins/rails3/_rails3 +++ /dev/null @@ -1,56 +0,0 @@ -#compdef rails -#autoload - -# rails 3 zsh completion, based on homebrew completion -# Extracted from https://github.com/robbyrussell/oh-my-zsh/blob/30620d463850c17f86e7a56fbf6a8b5e793a4e07/plugins/rails3/_rails3 -# Published by Christopher Chow - -local -a _1st_arguments -_1st_arguments=( - 'generate:Generate new code (short-cut alias: "g")' - 'console:Start the Rails console (short-cut alias: "c")' - 'server:Start the Rails server (short-cut alias: "s")' - 'dbconsole:Start a console for the database specified in config/database.yml (short-cut alias: "db")' - 'new:Create a new Rails application. "rails new my_app" creates a new application called MyApp in "./my_app"' - 'application:Generate the Rails application code' - 'destroy:Undo code generated with "generate"' - 'benchmarker:See how fast a piece of code runs' - 'profiler:Get profile information from a piece of code' - 'plugin:Install a plugin' -) - -_rails_generate_arguments() { - generate_arguments=( - controller - generator - helper - integration_test - mailer - migration - model - observer - performance_test - plugin - resource - scaffold - scaffold_controller - session_migration - stylesheets - ) -} - -_arguments \ - '(--version)--version[show version]' \ - '(--help)--help[show help]' \ - '*:: :->subcmds' && return 0 - -if (( CURRENT == 1 )); then - _describe -t commands "rails subcommand" _1st_arguments - return -fi - -case "$words[1]" in - generate) - _rails_generate_arguments - _wanted generate_arguments expl 'all generate' compadd -a generate_arguments ;; -esac |