pager: fix systemd not using correct pager
This commit is contained in:
parent
da3e1b132b
commit
ad581a434a
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue