From a9c1a5c73c4076897773407809b6d7099ab74c2e Mon Sep 17 00:00:00 2001 From: XiaoYan Li Date: Mon, 30 Dec 2024 11:24:39 +0800 Subject: [PATCH] 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. --- src/shell-integration/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-integration/README.md b/src/shell-integration/README.md index 1194ee21bd..976cf49240 100644 --- a/src/shell-integration/README.md +++ b/src/shell-integration/README.md @@ -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 ```