Conditionally call the git branch function in the prompt. When on a system with locked down secure sudo that function will not exist in a subshell.