Skip to content

Instantly share code, notes, and snippets.

@andrewvmail
Created June 22, 2023 22:53
Show Gist options
  • Save andrewvmail/3faaaedd03c6d58deac855b9f959a24f to your computer and use it in GitHub Desktop.
Save andrewvmail/3faaaedd03c6d58deac855b9f959a24f to your computer and use it in GitHub Desktop.
echo "souce my-alias.sh"
alias cp_last_command='history | tail -n 3 | head -n 1 | awk "{\$1=\"\"; print \$0}" | xargs echo -n | pbcopy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment