From 019cfbaf1c1bad5650118b576efd9234f5ae3529 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Thu, 3 Apr 2025 22:01:52 -0400 Subject: [PATCH] Add pager configuration --- .../private_dot_config/sz.env/aliases.env.tmpl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/_src.posix/private_dot_config/sz.env/aliases.env.tmpl b/_src.posix/private_dot_config/sz.env/aliases.env.tmpl index ba9abca..18b954d 100644 --- a/_src.posix/private_dot_config/sz.env/aliases.env.tmpl +++ b/_src.posix/private_dot_config/sz.env/aliases.env.tmpl @@ -14,11 +14,21 @@ alias lu='l -U ' alias sudo='sudo ' +is_cmd ov \ +&& alias less="ov " \ +&& export PAGER=ov + +is_cmd moar \ +&& alias less="moar " \ +&& export PAGER=moar + is_cmd nvim \ && export VISUAL="nvim" EDITOR="nvim" \ -&& alias nvim='POSTFIX_BUITINS=1 command nvim -p ' \ -|| alias nvim='POSTFIX_BUITINS=1 command vim -p ' +|| export VISUAL="vim" EDITOR="vim" + +alias nvim="POSTFIX_BUITINS=1 command $EDITOR -p " alias vi='nvim ' alias vim='nvim ' alias nvimdiff='nvim -d ' alias vimdiff='nvimdiff ' +