title: How to print a function definition in Bash?
body: <p>I have defined a few different functions in my <code>.bash_profile</code>. I usually remember the name of function but want to take a quick peek in the code before I run it.</p>
  
  <p>In my <code>.bash_profile</code> I have the following:</p>
  
  <pre><code>gpm () {
    echo "git pull origin master"
    git pull origin master
  }
  </code></pre>
  
  <p>Now I want to run something like this in Bash:</p>
  
  <pre><code>$ &lt;something&gt; gpm
  </code></pre>
  
  <p>Result expected: Don't execute the function just print out the function definition itself. </p>