From 21876d00d7ac4e6fa91da2a932936f0897b5f422 Mon Sep 17 00:00:00 2001 From: Michael Rodler Date: Thu, 2 Jun 2016 15:03:17 +0200 Subject: [PATCH] Properly source also on ubuntu --- bin/ctf-tools-pip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ctf-tools-pip b/bin/ctf-tools-pip index c9b3f95..430c8c8 100755 --- a/bin/ctf-tools-pip +++ b/bin/ctf-tools-pip @@ -23,7 +23,8 @@ if [[ ! -d "$WORKON_HOME" ]]; then fi export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 -source $(which virtualenvwrapper.sh) +source /etc/bash_completion.d/virtualenvwrapper \ + || source $(which virtualenvwrapper.sh) if ! workon "$CTF_TOOLS_VE" 2>&1 1>/dev/null; then echo "#### Creating python#PY_VERSION virtualenv '$CTF_TOOLS_VE' ####" >&2