···8181 # direnv integration
8282 eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
83838484- # Use nvim as MANPAGER if available
8484+ # Use nvim as MANPAGER if available and output is not piped
8585 if command -v nvim >/dev/null 2>&1; then
8686- export MANPAGER="nvim +Man!"
8686+ export MANPAGER='sh -c "if [ -t 1 ]; then nvim +Man!; else cat; fi"'
8787 fi
88888989 # This function is called whenever a command is not found.