title: I have a function in my .profile file that I pipe commands to. How can I do this?
body: <p>Sorry if the question title is confusing. I'm not really sure how to word this question.</p>
  
  <p>I have a function in my .profile file that is a shortcut for sublime text:</p>
  
  <pre><code>function s() { subl "$@" &amp; }
  export -f s
  </code></pre>
  
  <p>But, when I do <code>ls | s</code> I don't get the output of ls in my Sublime window. When I do <code>ls | subl</code> I do get the output in the Sublime window. Can I modify my function to work correctly for <code>s</code> and <code>s file.txt</code> and <code>ls | s</code>?</p>