only set kitty aliases in kitty terminal

This commit is contained in:
Noah Masur 2024-06-29 08:01:23 -04:00
parent c7de16b14c
commit 0a98b72784
No known key found for this signature in database

View File

@ -34,10 +34,13 @@
programs.rofi.terminal = lib.mkIf pkgs.stdenv.isLinux (lib.mkDefault "${pkgs.kitty}/bin/kitty"); programs.rofi.terminal = lib.mkIf pkgs.stdenv.isLinux (lib.mkDefault "${pkgs.kitty}/bin/kitty");
# Display images in the terminal # Display images in the terminal
programs.fish.shellAliases = { programs.fish.interactiveShellInit = # fish
icat = "kitty +kitten icat"; ''
ssh = "kitty +kitten ssh"; if test "$TERM" = "xterm-kitty"
}; alias icat="kitty +kitten icat"
alias ssh="kitty +kitten ssh"
end
'';
programs.kitty = { programs.kitty = {
enable = true; enable = true;