mcfly: fix when non-interactive with fish

This commit is contained in:
Bruno Bigras 2020-09-05 14:59:27 -04:00 committed by Robert Helgesson
parent 249650a07e
commit 1f04af74f2
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -66,7 +66,9 @@ in {
programs.fish.shellInit = mkIf cfg.enableFishIntegration '' programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
source "${pkgs.mcfly}/share/mcfly/mcfly.fish" source "${pkgs.mcfly}/share/mcfly/mcfly.fish"
mcfly_key_bindings if status is-interactive
mcfly_key_bindings
end
''; '';
home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme; home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme;