summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-11-06 14:00:50 -0600
committerMatt Strapp <matt@mattstrapp.net>2024-11-06 14:00:50 -0600
commit63f99a7e6675837360b8f1839881a760fcd4caaa (patch)
tree8fa5303303a8af5f019516c7cc71c427822fc781
parentno need to be private (diff)
downloaddotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.tar
dotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.tar.gz
dotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.tar.bz2
dotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.tar.lz
dotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.tar.xz
dotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.tar.zst
dotfiles-63f99a7e6675837360b8f1839881a760fcd4caaa.zip
Use code as GUI editor and use nvim as TUI editor
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r--dot_config/zsh/dot_zshenv4
1 files changed, 3 insertions, 1 deletions
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):