dotfiles/fish/.config/fish/functions/fco.fish

4 lines
162 B
Fish

function fco --description 'Checkout a branch using fzf'
git branch --all | grep -v HEAD | string trim | fzf | read -l result; and git checkout "$result"
end