comparison .shell.d/50.editorsetup.sh @ 463:1a3f8dff1214

editor: if it looks like I'm over ssh, use vi not emacs
author Augie Fackler <raf@durin42.com>
date Mon, 26 Jun 2017 09:26:59 -0400
parents c911585b7a7b
children 7983184eb8d8
comparison
equal deleted inserted replaced
462:fff281929b47 463:1a3f8dff1214
1 export ALTERNATE_EDITOR=$HOME/unixSoft/otherbin/emacs.sh 1 export ALTERNATE_EDITOR=$HOME/unixSoft/otherbin/emacs.sh
2 alias e='emacsclient -n' 2 alias e='emacsclient -n'
3 alias ee='emacsclient' 3 alias ee='emacsclient'
4 export EDITOR=emacsclient 4 if [ -z "$SSH_CONNECTION" ] ; then
5 # GUI session, use emacsclient
6 export EDITOR=emacsclient
7 else
8 # SSH session
9 export EDITOR=vi
10 fi