# HG changeset patch # User Meredith Howard # Date 1648614164 14400 # Node ID c74a9716d606384bf51bf7da83552e3bd078bc86 # Parent 556f618e117a433775fe23f3bb10f4eb1f4881f0 add vg function diff --git a/.profile.common b/.profile.common --- a/.profile.common +++ b/.profile.common @@ -40,6 +40,10 @@ alias mv='mv -i' alias hgcd='cd $(hg root)' alias gcd='cd "$(git rev-parse --show-toplevel)"' +vg() { + vim +copen -q <(ag --vimgrep "${@:?No pattern provided.}") +} + alias tmux-env='eval "$(tmux show-environment -s)"' alias :e=vim alias :q=exit