dotfiles/fish.configlink/functions/git-commits.fish

9 lines
254 B
Fish
Raw Normal View History

2022-04-30 14:21:43 +00:00
set commitline (git log \
--pretty="format:%C(auto)%ar %h%d %s" \
| fzf \
--height 50% \
--preview 'git show --color=always (echo {} | cut -d" " -f4)' \
)
and set commit (echo $commitline | cut -d" " -f4)
and echo $commit