Add back quotes for variables in the zsh shell integration to improve compatibility

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:
XiaoYan Li
2024-12-30 11:24:39 +08:00
committed by GitHub
parent 06389b280a
commit a9c1a5c73c

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
```