Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
completion: Fix zsh parsing $GIT_PS1_SHOWUPSTREAM
Since GIT_PS1_SHOWUPSTREAM is a variable with space separated values and zsh for loops do no split by space by default. The `-d' '` is a hacky solution that works in both bash and zsh. The correct way to do that in zsh would be do use read -rA and loop over the resulting array but -A is not defined in bash. Signed-off-by: Thomas Queiroz <thomasqueirozb@gmail.com>
- Loading branch information