From 2e4dbc5096ece87591d98387b8f8925923706145 Mon Sep 17 00:00:00 2001 From: min Date: Tue, 31 Dec 2024 23:48:32 -0500 Subject: [PATCH] zsh integrations --- homes/min/hyprland.nix | 6 +++++- homes/min/shell.nix | 25 +++++++++++++++++++------ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/homes/min/hyprland.nix b/homes/min/hyprland.nix index a5ed57d..de0a77e 100644 --- a/homes/min/hyprland.nix +++ b/homes/min/hyprland.nix @@ -1,5 +1,9 @@ _: { - programs.kitty.enable = true; + programs.kitty = { + enable = true; + shellIntegration.enableZshIntegration = true; + }; + wayland.windowManager.hyprland = { enable = true; xwayland.enable = true; diff --git a/homes/min/shell.nix b/homes/min/shell.nix index 117ed3c..2cf8314 100644 --- a/homes/min/shell.nix +++ b/homes/min/shell.nix @@ -1,18 +1,31 @@ _: { - programs = { + programs = let + enableZsh = { + enable = true; + enableZshIntegration = true; + }; + in { zsh = { enable = true; enableCompletion = true; autosuggestion.enable = true; syntaxHighlighting.enable = true; + + autocd = true; + + shellAliases = { + md = "mkdir -p"; + + ip = "ip --color"; + }; }; - direnv = { - enable = true; - enableZshIntegration = true; - }; + direnv = enableZsh; + + fzf = enableZsh; + eza = enableZsh; + zoxide = enableZsh; - zoxide.enable = true; tmux.enable = true; btop = { enable = true;