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
|
# 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
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue