From 0a98b72784fb63ebc442e3bb4832de07fa24c4fc Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 29 Jun 2024 08:01:23 -0400 Subject: [PATCH] only set kitty aliases in kitty terminal --- modules/common/applications/kitty.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/common/applications/kitty.nix b/modules/common/applications/kitty.nix index 468f30a..bca9503 100644 --- a/modules/common/applications/kitty.nix +++ b/modules/common/applications/kitty.nix @@ -34,10 +34,13 @@ programs.rofi.terminal = lib.mkIf pkgs.stdenv.isLinux (lib.mkDefault "${pkgs.kitty}/bin/kitty"); # Display images in the terminal - programs.fish.shellAliases = { - icat = "kitty +kitten icat"; - ssh = "kitty +kitten ssh"; - }; + programs.fish.interactiveShellInit = # fish + '' + if test "$TERM" = "xterm-kitty" + alias icat="kitty +kitten icat" + alias ssh="kitty +kitten ssh" + end + ''; programs.kitty = { enable = true;