Add gitrecap command

This commit is contained in:
2022-05-31 18:08:54 +02:00
parent b8663def4e
commit 4893183607
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,7 @@ abbr --add gr git reset
abbr --add gst git status
abbr --add gsta git stash push
abbr --add gstp git stash pop
abbr --add grc gitrecap # custom recap command
fish_vi_key_bindings

5
tree/.local/bin/gitrecap Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env fish
set MY_LATEST_COMMIT (git log --author "joakim@hulthe.net" --pretty=format:%H | head -n 1)
git diff $MY_LATEST_COMMIT