summaryrefslogtreecommitdiffstats
path: root/dot_config/zsh
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-11-06 16:53:17 -0600
committerMatt Strapp <matt@mattstrapp.net>2024-11-06 16:53:17 -0600
commit2d4eb8ae74431fc3a267467d955726cb2c40e14f (patch)
tree8b2ccffb939895e1ce5d49ce62dae442ef9f7e72 /dot_config/zsh
parentuse TUI for git (diff)
downloaddotfiles-master.tar
dotfiles-master.tar.gz
dotfiles-master.tar.bz2
dotfiles-master.tar.lz
dotfiles-master.tar.xz
dotfiles-master.tar.zst
dotfiles-master.zip
make sure git_editor does not get clobbered by myselfHEADmaster
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'dot_config/zsh')
-rw-r--r--dot_config/zsh/dot_zshenv2
1 files changed, 1 insertions, 1 deletions
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"