title: How to get last command run without using `!!`?
body: <p>I'm trying to alias <code>_!</code> to <code>sudo</code> the last command, but I'm running into roadblocks. <code>!!</code> doesn't seem to work in my <code>.zshrc</code> file, and sed has given me repeated problems. I tried using the following command, and several variations of it, but to no avail.</p>
  
  <p><code>history | tail -1 | sed -e 's/[^0-9\*\ ]+/\0/g'</code></p>
  
  <p>However, this still interpreted the piped input as a file, instead of a string of text. I also tried a variation using <code>awk</code>:</p>
  
  <p><code>history | tail -1 | awk '{ gsub("/[^0-9\*\ ]+", "") ; system( "echo" $1 ) }'</code></p>
  
  <p>I'm sure I'm just having some trouble putting the commands in correctly, but some help would be appreciated. </p>