# HG changeset patch # User Meredith Howard # Date 1678120952 21600 # Node ID 08675f3a85f60066a6d66fa95945ed7bfaaea019 # Parent c826661721a8a096b028ac6d64b0a06a339cb071 more default editor switching diff --git a/.profile.common b/.profile.common --- 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