xclip

Today I found an interesting program, xclip. It could access the X
clipboard from command line.

It makes the command line life much easier, for example, I have

alias -g C=’ |tee > (xclip) ‘

in my .zshrc. Thus a command like

ls C

will make the file listing of current PWD into the clipboard, and ready to be paste elsewhere :)

Another similar program is xsel. But looks with less feature.

Tags: , , ,

Post a Comment

You could use <code type="name"> to get your code colorized

Your email is never published nor shared. Required fields are marked *

Close
E-mail It