From dd00e2e79cbb8b4aad8f61f74fb9fc4095d4bb1b Mon Sep 17 00:00:00 2001 From: Deimos Date: Wed, 7 Oct 2020 15:39:14 -0600 Subject: [PATCH] Add invoke tab-completion script to dev .bashrc This enables tab-completion for the new invoke tasks in the dev version. So for example, you can type "invoke ty" and it will complete to "type-checking". --- salt/salt/development.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/salt/salt/development.sls b/salt/salt/development.sls index 7ea2ffb..bc4776e 100644 --- a/salt/salt/development.sls +++ b/salt/salt/development.sls @@ -19,3 +19,9 @@ automatic-activate: file.append: - name: '/home/{{ app_username }}/.bashrc' - text: 'source activate' + +# adds invoke's tab-completion script so that invoke tasks can be completed +invoke-tab-completion: + file.append: + - name: '/home/{{ app_username }}/.bashrc' + - text: 'source <(invoke --print-completion-script bash)'