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

4 lines
162 B
Fish
Raw Normal View History

function fco --description 'Checkout a branch using fzf'
2022-04-12 14:11:50 +02:00
git branch --all | grep -v HEAD | string trim | fzf | read -l result; and git checkout "$result"
end