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:
parent
0203226fab
commit
a3da85d577
2
.zshrc
2
.zshrc
@ -78,7 +78,7 @@ n ()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
|
NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
|
||||||
nnn "$@"
|
PAGER="bat" nnn "$@"
|
||||||
if [ -f "$NNN_TMPFILE" ]; then
|
if [ -f "$NNN_TMPFILE" ]; then
|
||||||
. "$NNN_TMPFILE"
|
. "$NNN_TMPFILE"
|
||||||
rm -f "$NNN_TMPFILE" > /dev/null
|
rm -f "$NNN_TMPFILE" > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user