reconstruct dir

This commit is contained in:
2026-01-21 22:50:39 +08:00
parent 429f8fc2d6
commit c5be794640
7 changed files with 263 additions and 193 deletions

View File

@@ -0,0 +1,21 @@
# 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)