From 99fe8a39740a8e64df607a425ca6397a540de4e8 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Mon, 29 Apr 2024 23:30:16 +0200 Subject: [PATCH] replace tree with tre --- home-manager/shared/shell/zsh.nix | 4 +++- nixos/shared/packages/default.nix | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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