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

GIT_PROMPT_THEME_FILE: unbound variable

Open dialex opened this issue 7 years ago • 5 comments

Every command that I run on my terminal now returns at the end: -bash: GIT_PROMPT_THEME_FILE: unbound variable

Even when I just press enter, I get that message. How can I remove it?

This is my bash_profile. I don't recall changing anything about git-prompt. I regularly do brew upgrade. I'm using macOS 10.14.

Do you need any extra info?

dialex avatar Oct 23 '18 14:10 dialex

which bash version do you run?

magicmonty avatar Oct 24 '18 07:10 magicmonty

GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0)

dialex avatar Oct 24 '18 09:10 dialex

@dialex have you something like set -u set in your config? If yes, I'm currently working on a fix. See #411

magicmonty avatar Nov 20 '18 09:11 magicmonty

I don't, this is my bash_profile.

dialex avatar Nov 20 '18 10:11 dialex

Same behaviour for me. I have a few scripts which I source and they set -u and whenever they run the end my session.

GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin20.3.0)

ensslen avatar May 10 '21 04:05 ensslen