From b9a5356276076c65feefd01a50181d6e99eb8861 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 4 Oct 2018 13:12:44 -0500 Subject: [PATCH] Add kubectl autocompletion. --- .bash_profile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bash_profile b/.bash_profile index 82259c4..75f34cd 100644 --- a/.bash_profile +++ b/.bash_profile @@ -69,6 +69,11 @@ if [ -f $brew_prefix/etc/bash_completion ]; then . $brew_prefix/etc/bash_completion fi +# Turn on kubectl autocomplete. +if [ -x "$(command -v kubectl)" ]; then + source <(kubectl completion bash) +fi + # Use brew-installed PHP binaries. export PATH="$brew_prefix/opt/php70/bin:$PATH" @@ -145,3 +150,5 @@ function blt() { return 1 fi } +export PATH="/usr/local/opt/php@7.1/bin:$PATH" +export PATH="/usr/local/opt/php@7.1/sbin:$PATH"