1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-29 17:57:28 +02:00

kitty: minor fixes

This commit is contained in:
Robert Helgesson 2023-05-12 23:19:59 +02:00
parent 70c8bd08e6
commit 8345a3166d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -142,20 +142,23 @@ in {
mode = mkOption { mode = mkOption {
type = types.str; type = types.str;
default = "enabled"; default = "enabled";
example = "no-cursor";
description = '' description = ''
Set the mode of the shell integration. This accepts the same options Set the mode of the shell integration. This accepts the same options
as the shell_integration option of Kitty. Note that no-rc is always as the <literal>shell_integration</literal> option of Kitty. Note that
implied. See <literal>no-rc</literal> is always implied. See
<link xlink:href="https://sw.kovidgoyal.net/kitty/shell-integration"/> <link xlink:href="https://sw.kovidgoyal.net/kitty/shell-integration"/>
for more details. for more details.
''; '';
example = "no-cursor";
}; };
enableBashIntegration = mkEnableOption "Kitty bash integration"
enableBashIntegration = mkEnableOption "Kitty Bash integration"
// shellIntegrationDefaultOpt; // shellIntegrationDefaultOpt;
enableFishIntegration = mkEnableOption "Kitty fish integration" enableFishIntegration = mkEnableOption "Kitty fish integration"
// shellIntegrationDefaultOpt; // shellIntegrationDefaultOpt;
enableZshIntegration = mkEnableOption "Kitty zsh integration"
enableZshIntegration = mkEnableOption "Kitty Z Shell integration"
// shellIntegrationDefaultOpt; // shellIntegrationDefaultOpt;
}; };
@ -207,10 +210,13 @@ in {
(cfg.darwinLaunchOptions != null && pkgs.stdenv.hostPlatform.isDarwin) { (cfg.darwinLaunchOptions != null && pkgs.stdenv.hostPlatform.isDarwin) {
text = concatStringsSep " " cfg.darwinLaunchOptions; text = concatStringsSep " " cfg.darwinLaunchOptions;
}; };
programs.bash.initExtra = programs.bash.initExtra =
mkIf cfg.shellIntegration.enableBashIntegration shellIntegrationInit.bash; mkIf cfg.shellIntegration.enableBashIntegration shellIntegrationInit.bash;
programs.fish.interactiveShellInit = programs.fish.interactiveShellInit =
mkIf cfg.shellIntegration.enableFishIntegration shellIntegrationInit.fish; mkIf cfg.shellIntegration.enableFishIntegration shellIntegrationInit.fish;
programs.zsh.initExtra = programs.zsh.initExtra =
mkIf cfg.shellIntegration.enableZshIntegration shellIntegrationInit.zsh; mkIf cfg.shellIntegration.enableZshIntegration shellIntegrationInit.zsh;
}; };