1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01: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 {
type = types.str;
default = "enabled";
example = "no-cursor";
description = ''
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
implied. See
as the <literal>shell_integration</literal> option of Kitty. Note that
<literal>no-rc</literal> is always implied. See
<link xlink:href="https://sw.kovidgoyal.net/kitty/shell-integration"/>
for more details.
'';
example = "no-cursor";
};
enableBashIntegration = mkEnableOption "Kitty bash integration"
enableBashIntegration = mkEnableOption "Kitty Bash integration"
// shellIntegrationDefaultOpt;
enableFishIntegration = mkEnableOption "Kitty fish integration"
// shellIntegrationDefaultOpt;
enableZshIntegration = mkEnableOption "Kitty zsh integration"
enableZshIntegration = mkEnableOption "Kitty Z Shell integration"
// shellIntegrationDefaultOpt;
};
@ -207,10 +210,13 @@ in {
(cfg.darwinLaunchOptions != null && pkgs.stdenv.hostPlatform.isDarwin) {
text = concatStringsSep " " cfg.darwinLaunchOptions;
};
programs.bash.initExtra =
mkIf cfg.shellIntegration.enableBashIntegration shellIntegrationInit.bash;
programs.fish.interactiveShellInit =
mkIf cfg.shellIntegration.enableFishIntegration shellIntegrationInit.fish;
programs.zsh.initExtra =
mkIf cfg.shellIntegration.enableZshIntegration shellIntegrationInit.zsh;
};