function git_cleanup
  for branch in (git branch -vv | grep ' gone' | cut -d' ' -f1-3 | sed -e 's/^[ \t]*//')
    if user_prompt "Remove deleted branch $branch?"
      git branch -D $branch
    end
  end
end


function git_cleanup
  for branch in (git branch -vv | grep ' gone' | cut -d' ' -f1-3 | sed -e 's/^[[:space:]]*//')
    if user_prompt "Remove deleted branch $branch?"
      git branch -D $branch
    end
  end
end


Use POSIX space char class instead
Bugfix: Use POSIX space char class instead

The \t got greedy on accident and proabbly has to do with escaping so
switching to good ol char classes instead

martinisoft/dotfiles