pager: fix systemd not using correct pager

This commit is contained in:
lelgenio 2023-03-02 14:23:38 -03:00
parent da3e1b132b
commit ad581a434a
2 changed files with 2 additions and 7 deletions

View file

@ -22,13 +22,6 @@ in {
set_color normal
bind \cy 'commandline | wl-copy -n'
function systemctl --wraps systemctl
env SYSTEMD_COLORS=1 systemctl $argv | kak-pager
end
function journalctl --wraps journalctl
env SYSTEMD_COLORS=1 journalctl $argv | kak-pager
end
'';
shellAliases = {
rm = "trash";

View file

@ -9,6 +9,8 @@ in {
home.sessionVariables = {
PAGER = "${pkgs.kak-pager}/bin/kak-pager";
MANPAGER = "${pkgs.kak-man-pager}/bin/kak-man-pager";
SYSTEMD_PAGER = "${pkgs.kak-pager}/bin/kak-pager";
SYSTEMD_PAGERSECURE = "1";
};
};
}