diff options
Diffstat (limited to '.config/selected_editor')
-rw-r--r-- | .config/selected_editor | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/selected_editor b/.config/selected_editor index 7631487..eec2325 100644 --- a/.config/selected_editor +++ b/.config/selected_editor @@ -1,4 +1,6 @@ -# Generated by /usr/bin/select-editor SELECTED_EDITOR="emacsclient -a '' -c" -ALTERNATE_EDITOR='nano' +if [[ -n $SSH_CONNECTION ]]; then + SELECTED_EDITOR+=" -nw" +fi +ALTERNATE_EDITOR='/usr/bin/vim' VISUAL="$SELECTED_EDITOR" |