Skip to content

Instantly share code, notes, and snippets.

@cGuille
Last active August 1, 2016 09:03
Show Gist options
  • Select an option

  • Save cGuille/5b20d6d04e2004709684aa6d3086f946 to your computer and use it in GitHub Desktop.

Select an option

Save cGuille/5b20d6d04e2004709684aa6d3086f946 to your computer and use it in GitHub Desktop.
Copy and paste data from/to your clipboard in Bash
# Copy from standard input into the clipboard.
alias copy='xsel --clipboard --input'
# Dump clipboard content to the standard output.
# Called `pasta` and not `paste` because `paste` already exists and can be useful.
alias pasta='xsel --clipboard --output'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment