about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-07 16:58:59 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-07 16:58:59 +0100
commita901cdabc298fe37ede23cfd8c2e459bbbac917d (patch)
tree18cb16da3cdf6e680eb51d2e3be0aa253718b47c /nix-conf/home
parent1e5f22a7fafdfb9c1928b03c7b4ce0e935ad6fcb (diff)
downloaddotfiles-a901cdabc298fe37ede23cfd8c2e459bbbac917d.tar.gz
Add eza config
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/common.nix17
-rw-r--r--nix-conf/home/includes/zsh.nix4
2 files changed, 19 insertions, 2 deletions
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}"'';