Adds toggle_git_prompt_visibility - fixes #2404

Reenables local hiding of a git prompt for large repositories.
Can be toggled through this new function. - Also doesn't falter when a
user has no permission to read the git config.