-
Notifications
You must be signed in to change notification settings - Fork 0
Development #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development #19
Changes from all commits
34de764
cb3e6e3
f79ddfb
eec1d66
9218df5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,13 +26,13 @@ disabled = true | |||||
|
|
||||||
| [custom.kubectx] | ||||||
| style = 'bold blue' | ||||||
| command = "echo \ue81d ${$(kubectl config current-context)##*/}" | ||||||
| command = "echo \ue81d ${$(kubectl config current-context 2>/dev/null)##*/} " | ||||||
| format = '[$output]($style)' | ||||||
| when = true | ||||||
|
|
||||||
| [custom.kubens] | ||||||
| style = 'bold red' | ||||||
| command = 'kubectl config view --minify -o "jsonpath={..namespace}"' | ||||||
| command = 'kubectl config view --minify -o "jsonpath={..namespace} 2>/dev/null"' | ||||||
|
||||||
| command = 'kubectl config view --minify -o "jsonpath={..namespace} 2>/dev/null"' | |
| command = 'kubectl config view --minify -o "jsonpath={..namespace}" 2>/dev/null' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command adds a trailing space to the module output (
...##*/}). That space will be included in$outputand can create inconsistent spacing around the(:${custom.kubens})segment in the prompt. Consider removing the trailing space (or usingprintfif you need precise formatting).