From be65b905f9c137471273750133164e71e557df99 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 25 Aug 2022 12:13:39 +0200 Subject: [PATCH] Add fgit command --- shell/fzf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/fzf b/shell/fzf index 0746547..627bd66 100755 --- a/shell/fzf +++ b/shell/fzf @@ -19,6 +19,10 @@ if command -v fzf 2>&1 >/dev/null; then fi done } + + function fgit() { + git log --oneline --decorate --color | fzf --ansi --preview 'git show $(echo {} | cut -d" " -f1)' + } fi # vim: ft=bash