diff options
-rw-r--r-- | oh-my-zsh.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index a60d25956..4025f0025 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -85,7 +85,9 @@ fi # Append zcompdump metadata if missing if (( $zcompdump_refresh )); then - cat >>| "$ZSH_COMPDUMP" <<EOF + # Use `tee` in case the $ZSH_COMPDUMP filename is invalid, to silence the error + # See https://github.com/ohmyzsh/ohmyzsh/commit/dd1a7269#commitcomment-39003489 + tee -a "$ZSH_COMPDUMP" &>/dev/null <<EOF $zcompdump_revision $zcompdump_fpath |