Browse files

initial work on nanoc completion

  • Loading branch information...
1 parent d9791b0 commit af9d95c7cf427bb7171173e27a89e74fee21b9e7 @iromli committed May 1, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 _bash/plugins/nanoc.plugin.sh
View
12 _bash/plugins/nanoc.plugin.sh
@@ -0,0 +1,12 @@
+function _nanoc() {
+ local cur prev opts args
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ args="autocompile compile create_item create_layout create_site debug deploy
+ help info prune update view watch"
+ opts="-l --color -d --debug -C --no-color -V --verbose -v --version -w --warn"
+
+ COMPREPLY=($(compgen -W "${args}" -- ${cur}))
+}
+complete -F _nanoc nanoc

0 comments on commit af9d95c

Please sign in to comment.