Fix loading completions
This commit is contained in:
parent
edc74b0a12
commit
5f675349a6
11
.bashrc
11
.bashrc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user