From da097f50675f6b940f8b683219f645889e0ad299 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Wed, 28 Jan 2026 20:30:54 +0100 Subject: [PATCH] replace ls with eza --- hosts/darwin/home-default.nix | 1 - hosts/nixos/home-default.nix | 1 - modules/zsh.nix | 13 +++++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hosts/darwin/home-default.nix b/hosts/darwin/home-default.nix index b79fe62..29957f3 100644 --- a/hosts/darwin/home-default.nix +++ b/hosts/darwin/home-default.nix @@ -168,7 +168,6 @@ ncdu imagemagick git-credential-oauth - zoxide delta fastfetch coreutils # GNU core utilities (base64, etc.) diff --git a/hosts/nixos/home-default.nix b/hosts/nixos/home-default.nix index 336e276..bd43f82 100644 --- a/hosts/nixos/home-default.nix +++ b/hosts/nixos/home-default.nix @@ -52,7 +52,6 @@ # Command-line utilities ncdu git-credential-oauth - zoxide delta fastfetch coreutils # GNU core utilities (base64, etc.) diff --git a/modules/zsh.nix b/modules/zsh.nix index 1f86711..eebefef 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -23,7 +23,10 @@ in }; shellAliases = { - ll = "ls -alF"; + ls = "eza"; + ll = "eza -l --icons --git"; + la = "eza -la --icons --git"; + lt = "eza --tree --icons"; # Nix helpers hm = "home-manager"; @@ -163,7 +166,13 @@ in enable = true; enableZshIntegration = true; }; - + + programs.eza = { + enable = true; + icons = "auto"; + git = true; + }; + # Manage Powerlevel10k configuration home.file.".p10k.zsh".source = ../config/p10k.zsh; }