diff options
author | Robby Russell <robby@planetargon.com> | 2012-10-09 06:41:16 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-10-09 06:41:16 -0700 |
commit | d4d2e6d659fcfd3e5eec73f4024a3bb645c76ede (patch) | |
tree | 4176db4260e607c1342cb787da3c5d25381f5305 /plugins | |
parent | 6d4b0c6e5642d2db2ff3475cef8ddd00c8522ba9 (diff) | |
parent | 061a4c006c83c9ddb2c8c693c2169d5be663763f (diff) | |
download | zsh-d4d2e6d659fcfd3e5eec73f4024a3bb645c76ede.tar.gz zsh-d4d2e6d659fcfd3e5eec73f4024a3bb645c76ede.tar.bz2 zsh-d4d2e6d659fcfd3e5eec73f4024a3bb645c76ede.zip |
Merge pull request #1306 from josh-/master
New 'Nanoc' plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/nanoc/_nanoc | 44 | ||||
-rw-r--r-- | plugins/nanoc/nanoc.plugin.zsh | 9 |
2 files changed, 53 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 diff --git a/plugins/nanoc/nanoc.plugin.zsh b/plugins/nanoc/nanoc.plugin.zsh new file mode 100644 index 000000000..5a5064613 --- /dev/null +++ b/plugins/nanoc/nanoc.plugin.zsh @@ -0,0 +1,9 @@ +alias n='nanoc' +alias na='nanoc autocompile' +alias nco='nanoc compile' +alias nci='nanoc create_item' +alias ncl='nanoc create_layout' +alias ncs='nanoc create_site' +alias nd='nanoc deploy' +alias nv='nanoc view' +alias nw='nanoc watch' |