Add back quotes for variables in the zsh shell integration to improve compatibility (#3989)

https://github.com/ghostty-org/ghostty/pull/3332#issuecomment-2564526118
According to this comment, using variables without quoting may not work
with `setopt SH_WORD_SPLIT`.

We don't need to quote variables in `[[ ]]` because it works
differently.
This commit is contained in:
Mitchell Hashimoto
2024-12-29 19:26:09 -08:00
committed by GitHub

View File

@ -73,6 +73,6 @@ sequence occurs.
```bash
if [[ -n $GHOSTTY_RESOURCES_DIR ]]; then
source $GHOSTTY_RESOURCES_DIR/shell-integration/zsh/ghostty-integration
source "$GHOSTTY_RESOURCES_DIR"/shell-integration/zsh/ghostty-integration
fi
```