jonmosco / kube-ps1

Kubernetes prompt info for bash and zsh
Apache License 2.0
3.52k stars 351 forks source link

Turn off by default when launching zsh #149

Closed stefanzilske closed 2 years ago

stefanzilske commented 2 years ago

Hey folks,

I just installed kube-ps1 using Homebrew and it works fine in iTerm2 with oh-my-zsh. But I would like to switch if off by default and only activate it with kubeon when I need it. kubeoff -g doesn't work, when I close and launch iTerm2 again, it's activated.

Setting KUBE_PS1_ENABLED = false in .zshrc does have no effect either. How can I achieve that?

Cheers, Stefan

andrewhathaway commented 2 years ago

@stefanzilske I have a line in my profile that turns off Kube as the last line, simply kubeoff as -g didn't work.

jonmosco commented 2 years ago

The oh-my-zsh port has been updated with the latest code. Can you update and check if this corrects the issue? (assuming you are using oh-my-zsh).

jonmosco commented 2 years ago

Did you try the latest update of the oh-my-zsh port?

jonmosco commented 2 years ago

if you want to have it disabled upon startup, you could create an empty file named disabled in ~/.kube/kube-ps1