diff options
author | Henry Yan <yanhonglei@gmail.com> | 2012-10-14 22:06:48 +0800 |
---|---|---|
committer | Henry Yan <yanhonglei@gmail.com> | 2012-10-14 22:06:48 +0800 |
commit | 3ad138a08aa3de1246cffde0b7187ffcd017298c (patch) | |
tree | 4060de701525c143c8f73244b5d5a5ddd69273ba /plugins/nanoc/_nanoc | |
parent | 3fe1e5c78760b81335eef501ef7f89875ae7753a (diff) | |
parent | c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 (diff) | |
download | zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.tar.gz zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.tar.bz2 zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.zip |
Merge remote-tracking branch 'upstream/master'
* upstream/master: (35 commits)
make README reflect latest changes
URL Tools Plugin
added a comment to the composer installation alias
added Composer completition and aliases
added two aliases to Symfony2 Plugin
fix test aliases
Missing comment line
look for test/unit instead of test/units. #typo
Correct error message.
Clean up doc
Jira ticket shortcut to browse existing issues or create a new issue.
Add zeus plugin
Make rvm prompt function a bit cleaner
Fixing the rvm_prompt_info command, now it will not show empty parens if no rvm is currently being used
Add link to gist
Updated documentation for agnoster theme
Use HISTFILE evironment variable directly rather than copying it
added autojump plugin support for mac os x + port
Colemak plugin
Per directory history plugin
...
Diffstat (limited to 'plugins/nanoc/_nanoc')
-rw-r--r-- | plugins/nanoc/_nanoc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/nanoc/_nanoc b/plugins/nanoc/_nanoc new file mode 100644 index 000000000..fde07c3fc --- /dev/null +++ b/plugins/nanoc/_nanoc @@ -0,0 +1,44 @@ +#compdef nanoc +#autoload + +# nanoc zsh completion - based on the homebrew zsh completion +# requires the 'nanoc' gem to be installed + +local -a _1st_arguments +_1st_arguments=( + 'autocompile:start the autocompiler' + 'compile:compile items of this site' + 'create-item:create an item' + 'create-layout:create a layout' + 'create-site:create a site' + 'deploy:deploy the compiled site' + 'help:show help' + 'prune:remove files not managed by nanoc from the output directory' + 'show-data:show data in this site' + 'show-plugins:show all available plugins' + 'show-rules:describe the rules for each item' + 'update:update the data stored by the data source to a newer version' + 'validate-css:validate the site’s CSS' + 'validate-html:validate the site’s HTML' + 'validate-links:validate links in site' + 'view:start the web server that serves static files' + 'watch:start the watcher' +) + +local expl +local -a pkgs installed_pkgs + +_arguments \ + '(--color)--color[enable color]' \ + '(--debug)--debug[enable debugging]' \ + '(--help)--help[show the help message and quit]' \ + '(--no-color)--no-color[disable color]' \ + '(--verbose)--verbose[make nanoc output more detailed]' \ + '(--version)--version[show version information and quit]' \ + '(--warn)--warn[enable warnings]' \ + '*:: :->subcmds' && return 0 + +if (( CURRENT == 1 )); then + _describe -t commands "nanoc subcommand" _1st_arguments + return +fi |