From a901cdabc298fe37ede23cfd8c2e459bbbac917d Mon Sep 17 00:00:00 2001 From: David Morgan Date: Sat, 7 Sep 2024 16:58:59 +0100 Subject: Add eza config --- nix-conf/home/includes/common.nix | 17 ++++++++++++++++- nix-conf/home/includes/zsh.nix | 4 +++- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'nix-conf/home') diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix index 7ae5c41..7173c1c 100644 --- a/nix-conf/home/includes/common.nix +++ b/nix-conf/home/includes/common.nix @@ -60,7 +60,6 @@ in ea elinks entr - eza fd file fzf @@ -91,6 +90,7 @@ in ssh-to-age tealdeer tre-command + tree ugrep uni unzip @@ -120,6 +120,21 @@ in }; }; + programs.eza = { + enable = true; + git = true; + icons = true; + extraOptions = [ + "--colour=auto" + "--long" + "--group-directories-first" + "--classify" + "--no-user" + "--no-time" + "--no-filesize" + "--no-permissions" + ]; + }; programs.gpg.enable = true; programs.nix-index = { diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 34a2bb7..a475f12 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -62,8 +62,10 @@ in cp = "cp -iv"; mv = "mv -iv"; mkdir = "mkdir -v"; - tree = "eza --tree"; cat = "bat -p"; + l = "eza"; + ll = "\\eza --icons --git --colour --long --group-directories-first --classify"; + t = "eza --tree"; pp = ''pushbullet push "Pixel" link "''${1}" "''${1}"''; -- cgit 1.4.1-2-gfad0