diff --git a/home-manager/shared/shell/zsh.nix b/home-manager/shared/shell/zsh.nix index 5368ebd..75b9810 100644 --- a/home-manager/shared/shell/zsh.nix +++ b/home-manager/shared/shell/zsh.nix @@ -17,6 +17,7 @@ code = "codium ./"; lh = "ls -lah"; cat = "bat"; + tree = "tre"; }; plugins = [ { @@ -49,9 +50,10 @@ "z" ]; }; - # stuff for zoxide + # stuff for zoxide & tre initExtra = '' eval "$(zoxide init --cmd cd zsh)" + tre() { command tre "$@" -e && source "/tmp/tre_aliases_$USER" 2>/dev/null; } ''; }; } diff --git a/nixos/shared/packages/default.nix b/nixos/shared/packages/default.nix index 81f762e..ae89bcd 100644 --- a/nixos/shared/packages/default.nix +++ b/nixos/shared/packages/default.nix @@ -36,7 +36,7 @@ neofetch oh-my-zsh rsync - tree + tre-command wget zsh tldr