home/terminal: add bat as man pager

This commit is contained in:
Anthony Rodriguez 2024-11-27 17:44:35 +01:00
parent ac9332b512
commit ea376f54e1
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ _: {
imports = [ imports = [
./programs ./programs
./shell ./shell

View file

@ -0,0 +1,9 @@
_: {
programs.bat = {
enable = true;
config.theme = "ansi";
};
home.sessionVariables = {
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
};
}

View file

@ -1,5 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./bat.nix
./git.nix ./git.nix
./gnupg.nix ./gnupg.nix
./tmux.nix ./tmux.nix