Add fgit command

This commit is contained in:
Loic Nageleisen 2022-08-25 12:13:39 +02:00
parent c747c6381f
commit be65b905f9
Signed by: lloeki
GPG key ID: D05DAEE6889F94C2

View file

@ -19,6 +19,10 @@ if command -v fzf 2>&1 >/dev/null; then
fi fi
done done
} }
function fgit() {
git log --oneline --decorate --color | fzf --ansi --preview 'git show $(echo {} | cut -d" " -f1)'
}
fi fi
# vim: ft=bash # vim: ft=bash