Copy the previous command in zsh
Adapted for zsh from http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal
alias lcc='fc -ln -1 | awk "{\$1=\$1}1" ORS="" | pbcopy'
Written by Raine Virta
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#