Closed matchai closed 5 years ago
The indentation on this line has gone swimming! Looks good otherwise, please fix before merging. :blush:
Did you notice any changes in rendering speed of the prompt? Felt like this (kubectl)-check caused the shell to halt some before render det new input line.
Testing without Spacefish and using a built in prompt, and it flies away.
Any way for me to completely disable the Kubernetes section, to test the speed out?
This most-recent update should not really affect performance as it's only checking the existence of a variable. We were already performing the kubectl check previously, but not acting on it. 😅
Yes, by setting SPACEFISH_KUBECONTEXT_SHOW
to false
, the section won't appear, skipping the check.
You can add set -gx SPACEFISH_KUBECONTEXT_SHOW false
to your config.fish
to disable it.
Guess it's all the different checks then. :smile:
Thanks.
Description
Add an early return when
kube_context
is not present.Motivation and Context
Closes #111
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: