diff --git a/shared/zsh.nix b/shared/zsh.nix index a55055f..7c466c4 100644 --- a/shared/zsh.nix +++ b/shared/zsh.nix @@ -1,6 +1,11 @@ { pkgs, ... }: { programs.command-not-found.enable = false; + environment.systemPackages = with pkgs; [ + fzf + bat + exa + ]; users.defaultUserShell = pkgs.zsh; programs.zsh = { enable = true; @@ -10,6 +15,7 @@ l = "ls -l"; ll = "ls -la"; la = "ls -a"; + less = "bat"; switch = "sudo nixos-rebuild switch && cat ${../images/another-cat-2.sixel}"; update = "cd /etc/nixos && nix flake update && cat ${../images/another-cat.sixel}"; garbage = "sudo nix-collect-garbage -d && cat ${../images/cat-garbage.sixel}"; @@ -28,7 +34,7 @@ theme = "agnoster"; }; - shellInit = + interactiveShellInit = '' source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh diff --git a/users/rouven/modules/packages.nix b/users/rouven/modules/packages.nix index cc7d973..3ac08b4 100644 --- a/users/rouven/modules/packages.nix +++ b/users/rouven/modules/packages.nix @@ -56,8 +56,6 @@ trash-cli # better rm ripgrep # better grep - exa # ls but with icons - bat # better less duf # better df gnumake gdb