Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
061a4c00
Commit
061a4c00
authored
12 years ago
by
Josh Parnham
Browse files
Options
Download
Email Patches
Plain Diff
Add new 'nanoc' plugin
parent
921d2f49
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/nanoc/_nanoc
+44
-0
plugins/nanoc/_nanoc
plugins/nanoc/nanoc.plugin.zsh
+9
-0
plugins/nanoc/nanoc.plugin.zsh
with
53 additions
and
0 deletions
+53
-0
plugins/nanoc/_nanoc
0 → 100644
View file @
061a4c00
#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
This diff is collapsed.
Click to expand it.
plugins/nanoc/nanoc.plugin.zsh
0 → 100644
View file @
061a4c00
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'
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help