From ea376f54e1efdb45062795c67677a5b61e8809ce Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 27 Nov 2024 17:44:35 +0100 Subject: [PATCH] home/terminal: add bat as man pager --- home/terminal/default.nix | 2 +- home/terminal/programs/bat.nix | 9 +++++++++ home/terminal/programs/default.nix | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 home/terminal/programs/bat.nix diff --git a/home/terminal/default.nix b/home/terminal/default.nix index c328315..dcf4368 100644 --- a/home/terminal/default.nix +++ b/home/terminal/default.nix @@ -1,4 +1,4 @@ -{ +_: { imports = [ ./programs ./shell diff --git a/home/terminal/programs/bat.nix b/home/terminal/programs/bat.nix new file mode 100644 index 0000000..1bc0f1e --- /dev/null +++ b/home/terminal/programs/bat.nix @@ -0,0 +1,9 @@ +_: { + programs.bat = { + enable = true; + config.theme = "ansi"; + }; + home.sessionVariables = { + MANPAGER = "sh -c 'col -bx | bat -l man -p'"; + }; +} diff --git a/home/terminal/programs/default.nix b/home/terminal/programs/default.nix index 01cc605..22e02a9 100644 --- a/home/terminal/programs/default.nix +++ b/home/terminal/programs/default.nix @@ -1,5 +1,6 @@ {pkgs, ...}: { imports = [ + ./bat.nix ./git.nix ./gnupg.nix ./tmux.nix