浏览代码

fix(trapd00r): fix potential command injection in `zsh_path`

Marc Cornellà 2 年之前
父节点
当前提交
4e777ef9d6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      themes/trapd00r.zsh-theme

+ 2 - 0
themes/trapd00r.zsh-theme

@@ -38,6 +38,8 @@ local c13=$'\e[38;5;196m\e[1m'
 
 
 zsh_path() {
+  setopt localoptions nopromptsubst
+
   local colors
   colors=$(echoti colors)