feat(fzf): add command for git check out

This commit is contained in:
Ade Attwood 2021-04-16 20:49:01 +01:00
parent 7c34a6baf2
commit 60509de1bf

View file

@ -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.
#