[enh] Add bash completion for bin/yunohost

This commit is contained in:
Jérôme Lebleu 2015-11-13 13:21:30 +01:00
parent 7b88f95b1c
commit 2ce41e0fa8
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#
# Bash completion for yunohost
#
_python_argcomplete() {
local IFS=' '
COMPREPLY=( $(IFS="$IFS" COMP_LINE="$COMP_LINE" COMP_POINT="$COMP_POINT" _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" _ARGCOMPLETE=1 "$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) )
if [[ $? != 0 ]]; then
unset COMPREPLY
fi
}
complete -o nospace -o default -F _python_argcomplete "yunohost"

1
debian/install vendored
View file

@ -1,4 +1,5 @@
bin/* /usr/bin/
data/bash-completion.d/yunohost /etc/bash-completion.d/
data/actionsmap/* /usr/share/moulinette/actionsmap/
data/hooks/* /usr/share/yunohost/hooks/
data/other/* /usr/share/yunohost/yunohost-config/moulinette/