shell-integration: remove redundant comments
I think the conditions are sufficiently self-descriptive.pull/8976/head
parent
9407e0fd0d
commit
4989f92c71
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue