1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37:44 +00:00

Quit Ghostty with Command-Q if on Darwin

This commit is contained in:
RGBCube 2025-01-13 18:32:42 +03:00
parent cc7b321aaa
commit 1f824f9250

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: let
inherit (lib) enabled mapAttrsToList merge mkIf;
inherit (lib) enabled mapAttrsToList merge mkIf optionals;
in merge <| mkIf config.isDesktop {
home-manager.sharedModules = [{
programs.nushell.environmentVariables = {
@ -71,7 +71,9 @@ in merge <| mkIf config.isDesktop {
} ++ mapAttrsToList (name: value: "ctrl+${name}=${value}") {
"physical:tab" = "next_tab";
"shift+physical:tab" = "previous_tab";
};
} ++ optionals config.isDarwin [
"command+q=quit"
];
};
};
}];