diff --git a/site-modules/core/files/oh-my-zsh/custom/fzf.zsh b/site-modules/core/files/oh-my-zsh/custom/fzf.zsh index f02266b..cb43cba 100644 --- a/site-modules/core/files/oh-my-zsh/custom/fzf.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/fzf.zsh @@ -45,6 +45,13 @@ fshow() { done } +# +# Checkout a git branch in a fzf context +# +fco() { + git checkout "$(git branch -vl | fzf --layout=reverse | awk '{print $1}')" +} + # # Interactive `git add` with FZF and diff preview support. #