浏览代码

kube-ps1: add example for common pitfall (#8318)

I ran into this issue, looks like maybe a few other people did as well.

https://github.com/jonmosco/kube-ps1/issues/28#issuecomment-359761463
A simple clarification seems helpful.
Isaac Cook 4 年之前
父节点
当前提交
22cf7159ec
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugins/kube-ps1/README.md

+ 2 - 0
plugins/kube-ps1/README.md

@@ -55,6 +55,8 @@ plugins=(
 
 # After the "source Oh My Zsh" line
 PROMPT=$PROMPT'$(kube_ps1) '
+# Or in double quotes, don't forget to escape
+PROMPT=$PROMPT"\$(kube_ps1) "
 ```
 
 Note: The `PROMPT` example above was tested with the theme `robbyrussell`.