diff options
author | Alan Pearce | 2023-10-09 20:23:57 +0200 |
---|---|---|
committer | Alan Pearce | 2023-10-09 20:23:57 +0200 |
commit | 7d285592d8726288fd6cda66e0735ee6c8bbe007 (patch) | |
tree | cc92d9d6af5bc792ee3e272fdf33a18d9a880c07 /user | |
parent | 740eaab14520a770c859861a3e8545958e923b26 (diff) | |
download | nixfiles-7d285592d8726288fd6cda66e0735ee6c8bbe007.tar.lz nixfiles-7d285592d8726288fd6cda66e0735ee6c8bbe007.tar.zst nixfiles-7d285592d8726288fd6cda66e0735ee6c8bbe007.zip |
kitty: simplify shell integration configuration
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/fish.nix | 5 | ||||
-rw-r--r-- | user/settings/kitty.nix | 17 |
2 files changed, 7 insertions, 15 deletions
diff --git a/user/settings/fish.nix b/user/settings/fish.nix index be68432e..c00e4fd1 100644 --- a/user/settings/fish.nix +++ b/user/settings/fish.nix @@ -38,11 +38,6 @@ bind \es __ghq_repository_search fzf_configure_bindings --directory=\cx\cf ''; - shellInit = '' - if test -n $KITTY_INSTALLATION_DIR - set -x KITTY_SHELL_INTEGRATION no-cursor - end - ''; shellAliases = { hist-freq-lines = lib.mkForce "history | sort | uniq -c | sort -gr | head -n100 | less"; hist-freq-commands = lib.mkForce "history | cut -d' ' -f 1 | sort | uniq -c | sort -gr | head -n100 | less"; diff --git a/user/settings/kitty.nix b/user/settings/kitty.nix index 6027d877..814ce54c 100644 --- a/user/settings/kitty.nix +++ b/user/settings/kitty.nix @@ -1,9 +1,6 @@ { pkgs , ... }: -let - inherit (pkgs) stdenv; -in { programs.kitty = { enable = true; @@ -12,14 +9,14 @@ in name = "Rec Mono SemiCasual"; size = 15; }; - theme = "Alabaster"; shellIntegration = { - mode = "enabled"; + mode = "no-cursor"; }; + settings = { + macos_option_as_alt = "left"; + }; + extraConfig = '' + include ~/.config/kitty/theme.conf + ''; }; - programs.fish.shellInit = '' - if test -n $KITTY_INSTALLATION_DIR - set -x KITTY_SHELL_INTEGRATION no-cursor - end - ''; } |