From e7fe9057c3e0164db23f98b884e1de092b4aafbb Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Fri, 16 Dec 2016 23:57:38 +0100 Subject: bash-completion for __activator --- packages/scripts/resources/lib/activate.inc.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') 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 -- cgit v1.2.1