~xdavidwu/dotfiles

1569c5dd3da4cd957d43b90794874c5e003e88e5 — xdavidwu 2 years ago 02909cf
bash: pager: prefer nvimpager, find commands with command
1 files changed, 6 insertions(+), 2 deletions(-)

M .bash_profile
M .bash_profile => .bash_profile +6 -2
@@ 39,10 39,14 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export ABDUCO_SOCKET_DIR="$XDG_DATA_HOME"

# application envs
[ -f /usr/bin/vimpager ] && export PAGER=vimpager
if command -v nvimpager >/dev/null; then
	export PAGER=nvimpager
elif command -v vimpager >/dev/null; then
	export PAGER=vimpager
fi
export LESS='-S -R'
export LESSHISTFILE=-
if [ -f /usr/bin/nvim ]; then
if command -v nvim >/dev/null; then
	export EDITOR=nvim
	export VIMPAGER_VIM=nvim
else