Files
TerminalPolyjuice/zsh/settings/useful_exports.sh
2026-01-21 22:50:39 +08:00

22 lines
489 B
Bash

# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
if (( $+commands[helix] )); then
export EDITOR='helix'
elif (( $+commands[nvim] )); then
export EDITOR='nvim'
else
export EDITOR='vim'
fi
else
if (( $+commands[helix] )); then
export EDITOR='helix'
elif (( $+commands[nvim] )); then
export EDITOR='nvim'
else
export EDITOR='vim'
fi
fi
# operating system
export OS=$(uname -s)