ghostty: only source fish shell integration script when shell is interactive (#7228)

The ghostty script adds hooks that are only
relevant in an interactive shell session.
This commit is contained in:
Kristoffer Plagborg Bak Sørensen 2025-06-08 06:57:48 +02:00 committed by GitHub
parent 627157cceb
commit 06451df423
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,7 @@ in
})
(lib.mkIf cfg.enableFishIntegration {
programs.fish.shellInit = ''
programs.fish.interactiveShellInit = ''
if set -q GHOSTTY_RESOURCES_DIR
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
end