From 2d4eb8ae74431fc3a267467d955726cb2c40e14f Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 6 Nov 2024 16:53:17 -0600 Subject: make sure git_editor does not get clobbered by myself Signed-off-by: Matt Strapp --- dot_config/zsh/dot_zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index 29838fc..47236cf 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -16,7 +16,7 @@ else fi # Use TUI editor for git -export GIT_EDITOR="$EDITOR" +[ -z "$GIT_EDITOR" ] && export GIT_EDITOR="$EDITOR" # Default programs for SSH or not if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then export BROWSER="w3m" -- cgit v1.2.3