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