diff --git a/modules/home/caem/core/zsh.nix b/modules/home/caem/core/zsh.nix index b815b8e..5ee8b3c 100644 --- a/modules/home/caem/core/zsh.nix +++ b/modules/home/caem/core/zsh.nix @@ -1,6 +1,12 @@ { pkgs, config, ... }: { + home.packages = with pkgs; [ + lsd + bat + autojump + ]; + home.file.".zshenv".enable = false; programs.zsh = { enable = true; @@ -15,6 +21,17 @@ /* Not persisted on purpose */ history.path = "${config.xdg.cacheHome}/zsh_history"; + shellAliases = { + cat = "bat --paging=never"; + ls = "lsd"; + ll = "lsd -lah"; + }; + + initExtra = '' + alias -g -- -h='-h 2>&1 | bat --language=help --style=plain' + alias -g -- --help='--help 2>&1 | bat --language=help --style=plain' + ''; + plugins = [ { name = "zsh-nix-shell";