mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
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:

committed by
Jonathan Lopez

parent
7680460ab5
commit
9c47b8a6fd
@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user