I updated my .bashrc file as follows:
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$'
It works just find and I can see my branch name in the prompt. However,when I run "screen" , I get
"-bash: __git_ps1: command not found"
What can be the reason for this?