1
0
dotfiles/.config/zsh/rc/pager.zsh
2024-02-28 23:22:33 +03:00

10 lines
198 B
Bash

#!/bin/zsh
PAGER=$(z-alt-find 'less|pager|more')
if [ -n "${PAGER}" ] ; then
export PAGER
READNULLCMD=$(which "${PAGER}" | xargs -r readlink -e)
else
unset PAGER READNULLCMD NULLCMD
fi