title: Getting error for command not found in less and shell
body: <p>according to less manual,</p>
  
  <pre><code>!command Execute the shell command with $SHELL.
  </code></pre>
  
  <p>I have an alias <code>pbcopy='nc localhost 2224'</code></p>
  
  <p>I tested but get</p>
  
  <pre><code>!pbcopy
  /bin/bash: pbcopy: command not found
  !done (press RETURN)
  </code></pre>
  
  <p>What I tried</p>
  
  <ol>
  <li>put alias in .bash_profile, .bashrc, .profile, none of them works</li>
  <li><code>!source .bash_profile</code> in less. not working</li>
  <li><code>!alias pbcopy='nc localhost 2224'</code></li>
  </ol>
  
  <p>I really need some help to understand this.</p>