bash-git-prompt icon indicating copy to clipboard operation
bash-git-prompt copied to clipboard

#567 Fix unset variables access

Open dmitry-a-l opened this issue 4 weeks ago • 0 comments

set -o nounset or set -u causes bash treat unset variables as an error when performing parameter expansion. Unfortunately, bash-git-prompt has may of these errors.

bash: GIT_PROMPT_FETCH_REMOTE_STATUS: unbound variable
bash: GIT_BRANCH: unbound variable

dmitry-a-l avatar Dec 16 '25 09:12 dmitry-a-l