Skip to content

$KUBECONFIG not set after ZSH shell is reloaded #51

@sgoudham

Description

@sgoudham

Hiya 👋

With the following minimal .zshrc, My $KUBECONFIG variable is still not set after restarting the terminal.

.zshrc

# Konf
source <(konf-go shellwrapper zsh)
# Auto load context
export KUBECONFIG=$(konf set -)
# Autocompletion
source <(konf completion zsh)

Actual Output
image

Expected Output
$KUBECONFIG is set upon startup and automatically loads the default context so that it's ready to use.

ZSH: zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
konf-go: "GitVersion":"0.5.1","GitCommit":"8ad03362b014b0ae5539dd6bd93c65d65ac15f7a","BuildDate":"2022-10-30T16:48:51Z","GoVersion":"go1.19","Platform":"linux/amd64","Compiler":"gc"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions