title: execute Bash command from IPython
body: <p>I want to source my bash environment when executing a bash command from IPython using the <code>!</code> operator, thus allowing me access to my defined bash functions:</p>
  
  <pre><code>In[2]: !&lt;my_fancy_bash_function&gt; &lt;function_argument&gt;
  </code></pre>
  
  <p>currently IPython is sourcing <code>sh</code> rather than <code>bash</code>:</p>
  
  <pre><code>In[3]: !declare -F
  sh: 1: declare: not found
  </code></pre>
  
  <p>How to source <code>bash</code> and set my environment settings from IPython?</p>