From c5438dad30bae6157989be8ef4f1bd8644051f08 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Thu, 8 Apr 2021 10:48:27 -0400 Subject: [PATCH] shortcuts for previous --- fish.configlink/functions/abbrs.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish.configlink/functions/abbrs.fish b/fish.configlink/functions/abbrs.fish index 2f584b7..7e986a7 100644 --- a/fish.configlink/functions/abbrs.fish +++ b/fish.configlink/functions/abbrs.fish @@ -19,6 +19,7 @@ function abbrs --description 'All abbreviations' abbr -a gs 'git status' abbr -a gd 'git diff' abbr -a gds 'git diff --staged' + abbr -a gdp 'git diff HEAD^' abbr -a ga 'git add' abbr -a gaa 'git add -A' abbr -a gac 'git commit -am' @@ -47,6 +48,8 @@ function abbrs --description 'All abbreviations' # Vim abbr -a v 'vim' abbr -a vimrc 'vim $HOME/.vimrc' + abbr -a vl 'vim -c "normal! `0"' + abbr -a vh 'vim -c "Hist"' # Notes abbr -a qn 'quicknote "'