title: Abort from a .bashrc script
body: <p>I know the <code>.bashrc</code> script must be run like <code>source .bashrc</code> or <code>. .bashrc</code> so changes in exports are kept during the session, but i need to abort from half the bashrc script without exiting the session.</p>
  
  <p>Currently i'm doing a binary search of a point where i issue a command which assumes the existence of a tty. This is to avoid getting the message <code>stdin: is not a tty</code>. So the easiest way is to <em>break</em>  the execution of the bashrc script, but i haven't found a way to do so.</p>
  
  <p>How do i <strong>abort</strong> from <strong>half</strong> the execution inside the <strong>.bashrc</strong> script <strong>w/o ending the session</strong>? (aka using the exit command)</p>