Fix loading completions

This commit is contained in:
Tony Grosinger 2021-07-27 10:57:51 -07:00
parent edc74b0a12
commit 5f675349a6

11
.bashrc
View File

@ -10,6 +10,12 @@ HISTFILESIZE=50000
HISTCONTROL=ignoreboth
HISTIGNORE="ls:ll:cd:pwd:bg:fg:history"
if [ "$BASH" != "" ]; then
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
fi
if [[ "${OSTYPE}" == "linux-gnu"* ]]; then
# History
@ -129,10 +135,5 @@ kubectl_context() {
if [ "$BASH" != "" ]; then
# Prompt
PS1="\n╔ \w\$(git_prompt) \$(kubectl_context)\n╚ \h\$ "
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
fi