title: No such event: 1
body: <p>I have the following <code>$HOME/.zshrc</code> file:</p>
  
  <pre><code>[vagrant@devel]/vagrant% cat ~/.zshrc
  #!/usr/bin/env zsh
  # BEGIN ANSIBLE MANAGED BLOCK
  if [ $(history | wc -l) -eq 0 ]; then
    # we've just shelled in; "magically" cd into the vagrant shared folder
    cd "/vagrant"
  fi
  # END ANSIBLE MANAGED BLOCK
  </code></pre>
  
  <p>I'm using the same script with Bash and it works just fine; on initial login, the user has no history and is magically transported to <code>/vagrant</code>.</p>
  
  <p>When I log in to this box with this <code>$HOME/.zshrc</code>, I see the following error:</p>
  
  <pre><code>/home/vagrant/.zshrc:fc:3: no such event: 1
  [vagrant@devel]/vagrant%
  </code></pre>
  
  <p>I do not know what this means and Google isn't leading me to a result. Apparently the code works, but this appears to be some kind of error. </p>
  
  <p>Any ideas?</p>