We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9b5c73 commit 352aaf0Copy full SHA for 352aaf0
gitprompt.sh
@@ -501,7 +501,7 @@ function updatePrompt() {
501
export GIT_INDEX_FILE="${GIT_INDEX_PRIVATE}"
502
503
local -a git_status_fields
504
- readarray -t git_status_fields < <("${__GIT_STATUS_CMD}" 2>/dev/null)
+ while IFS=$'\n' read -r line; do git_status_fields+=("${line}"); done < <("${__GIT_STATUS_CMD}" 2>/dev/null)
505
506
export GIT_BRANCH=$(replaceSymbols "${git_status_fields[0]}")
507
local GIT_REMOTE="$(replaceSymbols "${git_status_fields[1]}")"
0 commit comments