Browse Source

zsh: fix manpager again

raylu 2 năm trước cách đây
mục cha
commit
d9b7d5e367
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      zshrc

+ 5 - 1
zshrc

@@ -70,7 +70,11 @@ zle -N self-insert url-quote-magic
 source $HOME/.zsh_paste
 
 export EDITOR=vi
-export MANPAGER='vim -M +MANPAGER -'
+if builtin which nvim > /dev/null; then
+	export MANPAGER='vim +Man!'
+else
+	export MANPAGER='vim -M +MANPAGER -'
+fi
 export GREP_COLORS='ms=01;36:mc=01;31:sl=:cx=:fn=35:ln=33:bn=33:se=01;34'
 
 if [ -x ~/bin/eza ]; then