diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-12-16 23:57:38 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-12-16 23:57:38 +0100 |
commit | e7fe9057c3e0164db23f98b884e1de092b4aafbb (patch) | |
tree | a9bbce506b6e0eafbcb8282921691492b57ea1c7 | |
parent | 1571a1ce69e73948a06fa4a4610f96c1eba417f4 (diff) | |
download | debian-packages-e7fe9057c3e0164db23f98b884e1de092b4aafbb.tar.gz debian-packages-e7fe9057c3e0164db23f98b884e1de092b4aafbb.zip |
bash-completion for __activator
-rw-r--r-- | packages/scripts/resources/lib/activate.inc.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/scripts/resources/lib/activate.inc.sh b/packages/scripts/resources/lib/activate.inc.sh index b77b9fd..9ba7d4b 100644 --- a/packages/scripts/resources/lib/activate.inc.sh +++ b/packages/scripts/resources/lib/activate.inc.sh @@ -13,6 +13,11 @@ __activator() { done } +___activator() { + _init_completion -s || return + COMPREPLY=( $(compgen -W "$(ls -1 /opt/activator)" -- $cur) ) +} && complete -F ___activator __activator + # non-interactive activate __activate_env() { for func in $(typeset -F | cut -f 3 -d ' ' | grep -E '^__env_'); do |