title: ZSH alias with parameter
body: <p>I am trying to make an alias with parameter for my simple git add/commit/push.</p>
  <p>I've seen that a function could be used as an alias, so I tried but I didn't make it.</p>
  <p>Before I had:</p>
  <pre><code>alias gitall=&quot;git add . ; git commit -m 'update' ; git push&quot;
  </code></pre>
  <p>But I want to be able to modify my commits:</p>
  <pre><code>function gitall() {
      &quot;git add .&quot;
      if [$1 != &quot;&quot;]
          &quot;git commit -m $1&quot;
      else
          &quot;git commit -m 'update'&quot;
      fi
      &quot;git push&quot;
  }
  </code></pre>