about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-07T14·05+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-07T14·05+0000
commite59898f00fda17a8e1f1883bc90d71fe10c942d1 (patch)
tree8f9479ac9a7b87b22d1328d39c00c242c8e543e7
parent3dd58b01bd420ae7a227bf4af339e9ee4cb69371 (diff)
Support ALTERNATE_EDITOR environment variable
This simplies the `e` alias and the EDITOR variable definition.
-rw-r--r--configs/shared/zsh/aliases.zsh2
-rw-r--r--configs/shared/zsh/variables.zsh1
2 files changed, 2 insertions, 1 deletions
diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh
index ea5fbc450b70..71e2d670a387 100644
--- a/configs/shared/zsh/aliases.zsh
+++ b/configs/shared/zsh/aliases.zsh
@@ -6,7 +6,7 @@ alias ls="exa"
 alias ll="exa -l"
 alias la="exa -la"
 alias lorem="echo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
-alias e="emacsclient --no-wait --alternate-editor=vim"
+alias e="emacsclient --no-wait"
 alias d="docker"
 alias dps="docker ps"
 alias dpsa="docker ps -a"
diff --git a/configs/shared/zsh/variables.zsh b/configs/shared/zsh/variables.zsh
index 830170ddc8c8..b241894aaf56 100644
--- a/configs/shared/zsh/variables.zsh
+++ b/configs/shared/zsh/variables.zsh
@@ -1,5 +1,6 @@
 export TERMINAL=urxvtc
 export EDITOR=emacsclient
+export ALTERNATE_EDITOR=nvim
 
 BROWSER=google-chrome
 NIXIFY="$HOME/programming/nixify"