Permalink
Browse files

Add shell auto-completion script.

Works for bash or zsh. Source it in your .bashrc/.zshrc file.

TODO: Add the following to brew recipe.

bash_completion.install "planemo/scripts/planemo-completion.sh"
zsh_completion.install "planemo/scripts/planemo-completion.sh" => "_planemo"
cp "#{bash_completion}/planemo-completion.sh", zsh_completion
  • Loading branch information...
jmchilton committed May 16, 2015
1 parent b836471 commit 37dcc07ee20346000309592af8f7c9704a12ca50
Showing with 9 additions and 1 deletion.
  1. +7 −0 planemo/scripts/planemo-completion.sh
  2. +2 −1 setup.py
@@ -0,0 +1,7 @@
#!/bin/sh

if [[ -n ${ZSH_VERSION-} ]]; then
autoload -U +X bashcompinit && bashcompinit
fi

eval "$(_PLANEMO_COMPLETE=source planemo)"
@@ -81,7 +81,8 @@
'xml/xsd/tool/citation.xsd',
'xml/xsd/tool/citations.xsd',
'reports/*',
]
'scripts/*',
],
},
package_dir={'planemo': 'planemo',
'planemo_ext': 'planemo_ext'},

0 comments on commit 37dcc07

Please sign in to comment.