chawan as manpager and fixes to rebuild shortcuts

This commit is contained in:
Noah Masur
2025-11-13 21:33:06 -06:00
parent 407e9c3af8
commit 2f274cd652
4 changed files with 14 additions and 6 deletions

View File

@@ -15,11 +15,20 @@ in
config = lib.mkIf cfg.enable {
programs.chawan = {
enable = true;
settings = {
external.copy-cmd = if pkgs.stdenv.isLinux then "xclip -selection clipboard -in" else "pbcopy";
};
};
# Set Chawan as the default app for manual pages
home.sessionVariables = {
MANPAGER = "${pkgs.chawan}/bin/mancha";
MANPAGER = "${lib.getExe pkgs.chawan} -T text/x-ansi";
};
programs.fish.shellAbbrs.man = "mancha";
};
}