Browse Source

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

Marc Cornellà 2 years ago
parent
commit
4e777ef9d6
1 changed files with 2 additions and 0 deletions
  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() {
 zsh_path() {
+  setopt localoptions nopromptsubst
+
   local colors
   local colors
   colors=$(echoti colors)
   colors=$(echoti colors)