title: Displaying git branch name in prompt does not work in screen
body: <p>I updated my .bashrc file as follows:</p>
  
  <pre class="lang-bash prettyprint-override"><code>PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$'
  </code></pre>
  
  <p>It works just find and I can see my branch name in the prompt. However,when I run "screen" , I get </p>
  
  <blockquote>
    <p>"-bash: __git_ps1: command not found"</p>
  </blockquote>
  
  <p>What can be the reason for this?</p>