1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

change the pager for nnn

This commit is contained in:
juan 2022-04-02 11:39:30 +08:00
parent 0203226fab
commit a3da85d577

2
.zshrc
View File

@ -78,7 +78,7 @@ n ()
return
fi
NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
nnn "$@"
PAGER="bat" nnn "$@"
if [ -f "$NNN_TMPFILE" ]; then
. "$NNN_TMPFILE"
rm -f "$NNN_TMPFILE" > /dev/null