Skip to content

Instantly share code, notes, and snippets.

@esodot
Created April 3, 2018 08:59
Show Gist options
  • Save esodot/919d03b0664139974733ffba417f3134 to your computer and use it in GitHub Desktop.
Save esodot/919d03b0664139974733ffba417f3134 to your computer and use it in GitHub Desktop.
Using xclip in Linux console

Install

apt-get install xclip

Alias

alias setclip="xclip -selection c" alias getclip="xclip -selection c -o"

Usage

$ echo foo | setclip $ getclip foo

$ echo foo > foo.txt $ more foo.txt | setclip $ getclip $ foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment