mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-02 07:58:37 +00:00
shell-integration: remove redundant comments
I think the conditions are sufficiently self-descriptive.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user