From 0cc422c6e25fbef71bbd2b3960037a2e755df7af Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 16 Feb 2026 13:40:30 +0100 Subject: [PATCH] feat: add some more colors to my shell. --- modules/cross-platform/home-manager/shell.nix | 7 ++++++- modules/cross-platform/home-manager/zsh.nix | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/cross-platform/home-manager/shell.nix b/modules/cross-platform/home-manager/shell.nix index 660c4bb..6aa7e17 100644 --- a/modules/cross-platform/home-manager/shell.nix +++ b/modules/cross-platform/home-manager/shell.nix @@ -175,7 +175,12 @@ }; # Install bat - programs.bat.enable = true; + programs.bat = { + enable = true; + extraPackages = with pkgs.bat-extras; [ + batman + ]; + }; # Install jq programs.jq.enable = true; diff --git a/modules/cross-platform/home-manager/zsh.nix b/modules/cross-platform/home-manager/zsh.nix index de94183..14fae29 100644 --- a/modules/cross-platform/home-manager/zsh.nix +++ b/modules/cross-platform/home-manager/zsh.nix @@ -52,12 +52,16 @@ mkd = "mkdir -pv"; less = "less -R"; df = "df -h -x devtmpfs -x tmpfs -x usbfs -x loop"; - free = "free -mht"; # nnn on crack nnn = ''LC_COLLATE="C" nnn -xeaiH''; # fzf shenanigans vif = ''nvim $(fzf --preview="bat --color=always {}")''; emacs = "emacs --init-dir ~/.config/emacs"; + # bat colors to commands + man = "batman"; + lsblk = "lsblk | bat -l conf -p"; + free = "free -mht | bat -l cpuinfo -p"; + sensors = "sensors | bat -l cpuinfo -p"; }; antidote = {