more default editor switching

Mon, 06 Mar 2023 10:42:32 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 06 Mar 2023 10:42:32 -0600
changeset 1067
08675f3a85f6
parent 1066
c826661721a8
child 1068
537a428597b5

more default editor switching

.profile.common file | annotate | diff | comparison | revisions
--- a/.profile.common
+++ b/.profile.common
@@ -54,11 +54,11 @@ alias hgcd='cd $(hg root)'
 alias gcd='cd "$(git rev-parse --show-toplevel)"'
 
 vg() {
-  vim +copen -q <(ag --vimgrep "${@:?No pattern provided.}")
+  $EDITOR +copen -q <(ag --vimgrep "${@:?No pattern provided.}")
 }
 
 alias tmux-env='eval "$(tmux show-environment -s)"'
-alias :e=vim
+alias :e=$EDITOR
 alias :q=exit
 
 if [ -f ~/.profile.common.local ]; then

mercurial