kube-ps1: fix instructions in caveats (#29133)

This commit is contained in:
Andrew Janke 2018-06-18 04:02:32 -04:00 committed by ilovezfs
parent 05ebd6e9b9
commit f593cabc83

View file

@ -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