Mercurial > dotfiles
annotate .shell.d/50.editorsetup.sh @ 524:24f7a481d284
shell: cache openssl prefix from homebrew
Turns out homebrew costs about 800ms to figure this out, experimentally. :(
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 14 Nov 2022 10:40:29 -0500 |
parents | 7983184eb8d8 |
children |
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 |
522
7983184eb8d8
emacs.sh: hack together fallback to vscode
Augie Fackler <raf@durin42.com>
parents:
463
diff
changeset
|
2 alias e='emacsclient -n -a "$HOME/unixSoft/otherbin/emacs.sh -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 |