summaryrefslogtreecommitdiffstats
path: root/dot_config/zsh
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-11-06 16:07:52 -0600
committerMatt Strapp <matt@mattstrapp.net>2024-11-06 16:07:52 -0600
commit26b1a794ccbf141066e1a6c7ea993d4bcdbe792f (patch)
tree24c3be7f1a6c8c7c27cb6b2d740616468dc3feb0 /dot_config/zsh
parentSet different editors over SSH (diff)
downloaddotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.tar
dotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.tar.gz
dotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.tar.bz2
dotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.tar.lz
dotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.tar.xz
dotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.tar.zst
dotfiles-26b1a794ccbf141066e1a6c7ea993d4bcdbe792f.zip
sbell formatting
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'dot_config/zsh')
-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):