shell-integration: remove redundant comments

I think the conditions are sufficiently self-descriptive.
This commit is contained in:
Jon Parise
2025-10-01 10:27:42 -04:00
parent 9407e0fd0d
commit 4989f92c71
3 changed files with 0 additions and 3 deletions

View File

@@ -75,7 +75,6 @@ fi
# Add Ghostty binary to PATH if the path feature is enabled # Add Ghostty binary to PATH if the path feature is enabled
if [[ "$GHOSTTY_SHELL_FEATURES" == *"path"* && -n "$GHOSTTY_BIN_DIR" ]]; then if [[ "$GHOSTTY_SHELL_FEATURES" == *"path"* && -n "$GHOSTTY_BIN_DIR" ]]; then
# Check if the directory is already in PATH
if [[ ":$PATH:" != *":$GHOSTTY_BIN_DIR:"* ]]; then if [[ ":$PATH:" != *":$GHOSTTY_BIN_DIR:"* ]]; then
export PATH="$PATH:$GHOSTTY_BIN_DIR" export PATH="$PATH:$GHOSTTY_BIN_DIR"
fi fi

View File

@@ -197,7 +197,6 @@
set edit:after-readline = (conj $edit:after-readline {|_| block }) set edit:after-readline = (conj $edit:after-readline {|_| block })
} }
if (and (has-value $features path) (has-env GHOSTTY_BIN_DIR)) { if (and (has-value $features path) (has-env GHOSTTY_BIN_DIR)) {
# Check if the directory is already in PATH
if (not (has-value $paths $E:GHOSTTY_BIN_DIR)) { if (not (has-value $paths $E:GHOSTTY_BIN_DIR)) {
set paths = [$E:GHOSTTY_BIN_DIR $@paths] set paths = [$E:GHOSTTY_BIN_DIR $@paths]
} }

View File

@@ -222,7 +222,6 @@ _ghostty_deferred_init() {
# Add Ghostty binary to PATH if the path feature is enabled # Add Ghostty binary to PATH if the path feature is enabled
if [[ "$GHOSTTY_SHELL_FEATURES" == *"path"* ]] && [[ -n "$GHOSTTY_BIN_DIR" ]]; then if [[ "$GHOSTTY_SHELL_FEATURES" == *"path"* ]] && [[ -n "$GHOSTTY_BIN_DIR" ]]; then
# Check if the directory is already in PATH
if [[ ":$PATH:" != *":$GHOSTTY_BIN_DIR:"* ]]; then if [[ ":$PATH:" != *":$GHOSTTY_BIN_DIR:"* ]]; then
builtin export PATH="$PATH:$GHOSTTY_BIN_DIR" builtin export PATH="$PATH:$GHOSTTY_BIN_DIR"
fi fi