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

Allowing local disabling of git-aware-prompt

Open davefx opened this issue 6 years ago • 1 comments

Through the variable DISABLE_GIT_AWARE, allow disabling the software. This is needed, for example, when using a huge git repository, if we don't want the script to slow the command line work

davefx avatar May 25 '18 09:05 davefx

Instead of a variable that disables all repos in your current shell, another option is to have something in your local clone that you know is problematic. A quick example showing that git is perfectly happy storing whatever you want in its config files:

$ git config ext.git-aware-prompt.disable 1
$ git config -l | grep aware
ext.git-aware-prompt.disable=1
$ grep -A1 aware ../../../.git/config 
[ext "git-aware-prompt"]
        disable = 1
$ git config --get --bool ext.git-aware-prompt.disable
true

This would change the bash script a little more, but I think it would be much more "git-like."

AaronDMarasco-VSI avatar May 29 '18 10:05 AaronDMarasco-VSI