Skip to content

Commit

Permalink
Fix autocomplete for terraform and aws (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored Dec 6, 2018
1 parent 2438e0e commit 85f228e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions rootfs/etc/profile.d/aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ if [ ! -f "${AWS_CONFIG_FILE}" ]; then
# Required for AWS_PROFILE=default
echo '[default]' >${AWS_CONFIG_FILE}
fi

# Install autocompletion rules
if [ -x "/usr/bin/aws_completer" ]; then
complete -C '/usr/bin/aws_completer' aws
fi
4 changes: 2 additions & 2 deletions rootfs/etc/profile.d/terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ function terraform_prompt() {
}

# Install autocompletion rules
if which terraform >/dev/null 2>&1; then
complete -C /usr/local/bin/terraform terraform
if [ -x '/usr/bin/terraform' ]; then
complete -C /usr/bin/terraform terraform
fi

0 comments on commit 85f228e

Please sign in to comment.