[zsh] Move setting VISUAL to init-env-vi and remove LESSHISTFILE

This commit is contained in:
Eryn Wells 2024-09-26 16:11:08 -07:00
parent a174790ed0
commit b2974db133
2 changed files with 2 additions and 2 deletions

View file

@ -5,8 +5,6 @@ autoload -Uz binary_exists
function init-env function init-env
{ {
export PAGER=less export PAGER=less
export VISUAL=$EDITOR
export LESSHISTFILE="-"
export GREP_OPTIONS="--color=auto" export GREP_OPTIONS="--color=auto"
export GREP_COLOR="1;32" export GREP_COLOR="1;32"

View file

@ -13,6 +13,8 @@ function init-env-vi
else else
export EDITOR=vi export EDITOR=vi
fi fi
export VISUAL=$EDITOR
} }
init-env-vi "$@" init-env-vi "$@"