Skip to content

Commit 37dcc07

Browse files
committed
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
1 parent b836471 commit 37dcc07

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
if [[ -n ${ZSH_VERSION-} ]]; then
4+
autoload -U +X bashcompinit && bashcompinit
5+
fi
6+
7+
eval "$(_PLANEMO_COMPLETE=source planemo)"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
'xml/xsd/tool/citation.xsd',
8282
'xml/xsd/tool/citations.xsd',
8383
'reports/*',
84-
]
84+
'scripts/*',
85+
],
8586
},
8687
package_dir={'planemo': 'planemo',
8788
'planemo_ext': 'planemo_ext'},

0 commit comments

Comments
 (0)