From 63f99a7e6675837360b8f1839881a760fcd4caaa Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 6 Nov 2024 14:00:50 -0600 Subject: Use code as GUI editor and use nvim as TUI editor Signed-off-by: Matt Strapp --- dot_config/zsh/dot_zshenv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index fe99379..56e327d 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -9,7 +9,9 @@ export FPATH="$FPATH:${XDG_DATA_HOME:-$HOME/.local/share/zsh/site-functions}" unsetopt PROMPT_SP # Default programs: -export EDITOR="nvim +star" +#export EDITOR="nvim +star" +[ -n "$DISPLAY" ] && export EDITOR="code -nw" || export EDITOR="nvim +star" +export VISUAL="$EDITOR" export BROWSER="chromium" # ~/ Clean-up (XDG): -- cgit v1.2.3