-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment
31 lines (24 loc) · 989 Bytes
/
environment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- mode: shell-script -*-
#
# Source this file into your bash shell while following instructions in README.md.
SOURCE_DIR="$(dirname "$(readlink -f "${BASH_SOURCE}")")"
export PATH="${SOURCE_DIR}/bin:~/.pyenv/bin:${PATH}"
eval "$(cd "${SOURCE_DIR}" && pyenv init -)"
if [ -e "${SOURCE_DIR}/.venv/bin/activate" ] ; then
VIRTUAL_ENV_DISABLE_PROMPT=true source "${SOURCE_DIR}/.venv/bin/activate"
else
printf "%s\n" "venv activate script missing - README.md explains how to set up your python environment." > /dev/stderr
fi
if [ -e "${SOURCE_DIR}/.venv/bin/aws_completer" ] ; then
complete -C "${SOURCE_DIR}/.venv/bin/aws_completer" "aws"
fi
if which terraform > /dev/null ; then
complete -C "$(which terraform)" terraform
else
printf "%s\n" "terraform is not installed - see README.md." > /dev/stderr
fi
if which packer > /dev/null ; then
complete -C "$(which packer)" packer
else
printf "%s\n" "packer is not installed - see README.md." > /dev/stderr
fi