title: Create an alias for "pipe grep"
body: <p>I would like to create an alias for <code>| grep</code></p>
  
  <p>eg, for example be able to write:</p>
  
  <p><code>ps -axf G chrome</code> instead of <code>ps -axf | grep chrome</code></p>
  
  <p>I've written the following in my aliases file of oh-my-zsh:</p>
  
  <p><code>alias -g G= '| grep --color'</code></p>
  
  <p>However, this doesn's seem to work.</p>
  
  <p>Any idea why ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I get the following error when I write <code>ps -axf G chrome</code></p>
  
  <pre><code>error: must set personality to get -x option
  
  Usage:
   ps [options]
  
   Try 'ps --help &lt;simple|list|output|threads|misc|all&gt;'
    or 'ps --help &lt;s|l|o|t|m|a&gt;'
   for additional help text.
  
  For more details see ps(1).
  </code></pre>
  
  <p>It seems that the <code>G</code> is interpreted as being part of the ps command</p>