Skip to content

Instantly share code, notes, and snippets.

@yamashiro
Last active December 11, 2015 19:09
Show Gist options
  • Save yamashiro/4646800 to your computer and use it in GitHub Desktop.
Save yamashiro/4646800 to your computer and use it in GitHub Desktop.
直前のコマンドをクリップボードにコピーするワンライナー
history | tail -n 1 -q | awk '$1=""; {print}' | pbcopy
fc -ln -1 | tr -d '\n' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment