From e3ca1c1b6d370afc8306a5e8036168718d789fbe Mon Sep 17 00:00:00 2001 From: Őry Máté <ory.mate@cloud.bme.hu> Date: Tue, 4 Nov 2014 12:53:39 +0100 Subject: [PATCH] fab: add install_bash_completion_script function --- circle/fabfile.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/circle/fabfile.py b/circle/fabfile.py index fefd27d..4c595ff 100755 --- a/circle/fabfile.py +++ b/circle/fabfile.py @@ -204,3 +204,12 @@ def _stopped(*services): def _workon(name): return prefix("source ~/.virtualenvs/%s/bin/activate && " "source ~/.virtualenvs/%s/bin/postactivate" % (name, name)) + + +@roles('portal') +def install_bash_completion_script(): + sudo("wget https://raw.githubusercontent.com/marcelor/fabric-bash-" + "autocompletion/48baf5735bafbb2be5be8787d2c2c04a44b6cdb0/fab " + "-O /etc/bash_completion.d/fab") + print("To have bash completion instantly, run\n" + " source /etc/bash_completion.d/fab") -- libgit2 0.26.0