kube-ps1: fix instructions in caveats (#29133)
This commit is contained in:
parent
05ebd6e9b9
commit
f593cabc83
1 changed files with 2 additions and 7 deletions
|
@ -14,14 +14,9 @@ class KubePs1 < Formula
|
|||
end
|
||||
|
||||
def caveats; <<~EOS
|
||||
Make sure kube-ps1 is loaded from your ~/.zshrc or ~/.bashrc:
|
||||
For zsh:
|
||||
Make sure kube-ps1 is loaded from your ~/.zshrc and/or ~/.bashrc:
|
||||
source "#{opt_share}/kube-ps1.sh"
|
||||
PROMPT='$(kube_ps1)'$PROMPT
|
||||
|
||||
For Bash:
|
||||
source "#{opt_share}/kube-ps1.sh"
|
||||
PS1="[\$(kube_ps1)]\$ "
|
||||
PS1='$(kube_ps1)'$PS1
|
||||
EOS
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue