From b2974db133ac2c916c37dd8d1029d850f959fc3e Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 26 Sep 2024 16:11:08 -0700 Subject: [PATCH] [zsh] Move setting VISUAL to init-env-vi and remove LESSHISTFILE --- zsh/func/init-env | 2 -- zsh/func/init-env-vi | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/func/init-env b/zsh/func/init-env index ca30c67..37994f4 100644 --- a/zsh/func/init-env +++ b/zsh/func/init-env @@ -5,8 +5,6 @@ autoload -Uz binary_exists function init-env { export PAGER=less - export VISUAL=$EDITOR - export LESSHISTFILE="-" export GREP_OPTIONS="--color=auto" export GREP_COLOR="1;32" diff --git a/zsh/func/init-env-vi b/zsh/func/init-env-vi index ed724d1..442fc3a 100644 --- a/zsh/func/init-env-vi +++ b/zsh/func/init-env-vi @@ -13,6 +13,8 @@ function init-env-vi else export EDITOR=vi fi + + export VISUAL=$EDITOR } init-env-vi "$@"