Skip to content

Commit

Permalink
Export KUBECONFIG only if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Twanislas committed Jan 30, 2024
1 parent 9baa1bb commit 8e924e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DEFAULT_USER=arahier
export GPG_TTY=$(tty)

# Default Kubectl config location
export KUBECONFIG=${HOME}/.kube/config
[[ -s "${HOME}/.kube/config" ]] && export KUBECONFIG=${HOME}/.kube/config

# Source Prezto provided runcom
[[ -s "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv" ]] && source "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv"

0 comments on commit 8e924e7

Please sign in to comment.