From e8b66385c978028cb57111a0a2c879cd78736f5b Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 3 May 2025 20:52:48 +0200 Subject: [PATCH] Improve ZSH experience --- modules/home/kitty.nix | 6 ++---- modules/home/packages.nix | 22 ++++++++++++++-------- modules/home/zsh.nix | 6 ++++++ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/modules/home/kitty.nix b/modules/home/kitty.nix index 6d4a186..ed26632 100644 --- a/modules/home/kitty.nix +++ b/modules/home/kitty.nix @@ -8,6 +8,8 @@ programs.kitty = { enable = true; + shellIntegration.enableZshIntegration = true; + themeFile = "Catppuccin-Mocha"; font = { @@ -41,10 +43,6 @@ "alt+2" = "goto_tab 2"; "alt+3" = "goto_tab 3"; "alt+4" = "goto_tab 4"; - - ## Unbind - "ctrl+shift+left" = "no_op"; - "ctrl+shift+right" = "no_op"; }; }; } diff --git a/modules/home/packages.nix b/modules/home/packages.nix index 10831c7..671c7ad 100644 --- a/modules/home/packages.nix +++ b/modules/home/packages.nix @@ -1,12 +1,12 @@ {pkgs, ...}: { -xdg.mimeApps.enable = true; + xdg.mimeApps.enable = true; xdg.mimeApps.defaultApplications = -{ - "inode/directory" = ["nemo.desktop"]; -"application/x-gnome-saved-search" = ["nemo.desktop"]; - "application/pdf" = ["okularApplication_pdf.desktop" "org.gnome.Evince.desktop"]; - "text/plain" = ["org.gnome.TextEditor.desktop"]; - } + { + "inode/directory" = ["nemo.desktop"]; + "application/x-gnome-saved-search" = ["nemo.desktop"]; + "application/pdf" = ["okularApplication_pdf.desktop" "org.gnome.Evince.desktop"]; + "text/plain" = ["org.gnome.TextEditor.desktop"]; + } // builtins.listToAttrs (map (key: { name = "image/${key}"; value = ["vimiv.desktop"]; @@ -23,6 +23,7 @@ xdg.mimeApps.enable = true; distrobox boxbuddy evince # gnome pdf viewer + eza # cool ls element-desktop # Matrix client fd # find replacement file # Show file information @@ -56,7 +57,7 @@ xdg.mimeApps.enable = true; zenity wdisplays wireguard-tools -wtype + wtype # Wine stuff winetricks @@ -92,5 +93,10 @@ wtype xdg-utils xxd alejandra + + # VPN + wireguard-tools + openconnect + networkmanager-openconnect ]; } diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index 411b891..8c63940 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -34,6 +34,7 @@ findw = "grep -rl"; pdf = "tdf"; open = "xdg-open"; + find = "fd"; l = "eza --icons -a --group-directories-first -1"; #EZA_ICON_SPACING=2 ll = "eza --icons -a --group-directories-first -1 --no-user --long"; @@ -71,6 +72,11 @@ # python piv = "python -m venv .venv"; psv = "source .venv/bin/activate"; + + # ssh + s = "kitten ssh"; + ssh = "kitten ssh"; + ossh = "ssh"; }; };