Mercurial > dotfiles
annotate .shell.d/50.editorsetup.sh @ 472:79110d94a0c2
hg: filter out display of remotenames that start with "/"
I may want to filter out anything that contains a "/" since that'd be
a URL instead of a path shortcut, but I'll do that later if it becomes
obviously the right choice.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 01 Feb 2019 14:08:50 -0500 |
parents | 1a3f8dff1214 |
children | 7983184eb8d8 |
rev | line source |
---|---|
33
b403402153b5
Add some setup to make emacs easier to use on OS X.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 export ALTERNATE_EDITOR=$HOME/unixSoft/otherbin/emacs.sh |
b403402153b5
Add some setup to make emacs easier to use on OS X.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
2 alias e='emacsclient -n' |
407
c911585b7a7b
editors: add ee alias for emacsclient with blocking
Augie Fackler <raf@durin42.com>
parents:
44
diff
changeset
|
3 alias ee='emacsclient' |
463
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
4 if [ -z "$SSH_CONNECTION" ] ; then |
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
5 # GUI session, use emacsclient |
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
6 export EDITOR=emacsclient |
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
7 else |
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
8 # SSH session |
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
9 export EDITOR=vi |
1a3f8dff1214
editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents:
407
diff
changeset
|
10 fi |