diff --git a/src/shell-integration/bash/ghostty.bash b/src/shell-integration/bash/ghostty.bash index cdaddea5c..e910a9885 100644 --- a/src/shell-integration/bash/ghostty.bash +++ b/src/shell-integration/bash/ghostty.bash @@ -75,7 +75,6 @@ fi # Add Ghostty binary to PATH if the path feature is enabled if [[ "$GHOSTTY_SHELL_FEATURES" == *"path"* && -n "$GHOSTTY_BIN_DIR" ]]; then - # Check if the directory is already in PATH if [[ ":$PATH:" != *":$GHOSTTY_BIN_DIR:"* ]]; then export PATH="$PATH:$GHOSTTY_BIN_DIR" fi diff --git a/src/shell-integration/elvish/lib/ghostty-integration.elv b/src/shell-integration/elvish/lib/ghostty-integration.elv index 04fe8f86e..11f4eae5b 100644 --- a/src/shell-integration/elvish/lib/ghostty-integration.elv +++ b/src/shell-integration/elvish/lib/ghostty-integration.elv @@ -197,7 +197,6 @@ set edit:after-readline = (conj $edit:after-readline {|_| block }) } 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)) { set paths = [$E:GHOSTTY_BIN_DIR $@paths] } diff --git a/src/shell-integration/zsh/ghostty-integration b/src/shell-integration/zsh/ghostty-integration index e76aace4a..27ef39bbc 100644 --- a/src/shell-integration/zsh/ghostty-integration +++ b/src/shell-integration/zsh/ghostty-integration @@ -222,7 +222,6 @@ _ghostty_deferred_init() { # Add Ghostty binary to PATH if the path feature is enabled if [[ "$GHOSTTY_SHELL_FEATURES" == *"path"* ]] && [[ -n "$GHOSTTY_BIN_DIR" ]]; then - # Check if the directory is already in PATH if [[ ":$PATH:" != *":$GHOSTTY_BIN_DIR:"* ]]; then builtin export PATH="$PATH:$GHOSTTY_BIN_DIR" fi