diff options
Diffstat (limited to 'dot_config/zsh/dot_zshenv')
-rw-r--r-- | dot_config/zsh/dot_zshenv | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index 8c8fa87..95166ee 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -8,11 +8,15 @@ export FPATH="$FPATH:${XDG_DATA_HOME:-$HOME/.local/share/zsh/site-functions}" unsetopt PROMPT_SP -# Default programs: -#export EDITOR="nvim +star" -[ -n "$DISPLAY" ] && export EDITOR="code -nw" || export EDITOR="nvim +star" +# Default programs for SSH or not +if [ -n "$SSH_CLIENT"] || [ -n "$SSH_TTY" ]; then + export BROWSER="chromium" + [ -n "$DISPLAY" ] && export EDITOR="code -nw" || export EDITOR="nvim +star" +else + export BROWSER="w3m" + export EDITOR="nvim +star" +fi export VISUAL="$EDITOR" -export BROWSER="chromium" # ~/ Clean-up (XDG): [ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME="$HOME/.config" |