1
0
dotfiles/.config/zsh/rc/pager.zsh

11 lines
202 B
Bash
Raw Normal View History

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