reconstruct dir
This commit is contained in:
21
zsh/settings/useful_exports.sh
Normal file
21
zsh/settings/useful_exports.sh
Normal 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)
|
||||
Reference in New Issue
Block a user