summaryrefslogtreecommitdiffstats
path: root/dot_config/zsh/dot_zshenv
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/zsh/dot_zshenv')
-rw-r--r--dot_config/zsh/dot_zshenv6
1 files changed, 4 insertions, 2 deletions
diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv
index 95166ee..cf04d34 100644
--- a/dot_config/zsh/dot_zshenv
+++ b/dot_config/zsh/dot_zshenv
@@ -1,4 +1,4 @@
-#!/bin/zsh
+#!/bin/bash
# profile file. Runs on login. Environmental variables are set here.
# If you don't plan on reverting to bash, you can remove the link in ~/.profile
@@ -9,13 +9,15 @@ export FPATH="$FPATH:${XDG_DATA_HOME:-$HOME/.local/share/zsh/site-functions}"
unsetopt PROMPT_SP
# Default programs for SSH or not
-if [ -n "$SSH_CLIENT"] || [ -n "$SSH_TTY" ]; then
+if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
export BROWSER="chromium"
+ # shellcheck disable=SC2015
[ -n "$DISPLAY" ] && export EDITOR="code -nw" || export EDITOR="nvim +star"
else
export BROWSER="w3m"
export EDITOR="nvim +star"
fi
+
export VISUAL="$EDITOR"
# ~/ Clean-up (XDG):