adtac / climate

The swiss-army knife of utility tools for Linux.
GNU General Public License v3.0
1.43k stars 76 forks source link

enhancement: pipe to clipboard #13

Open roccomuso opened 8 years ago

roccomuso commented 8 years ago

Could be worth implementing a new climate clip or a climate c command similar to climate ix that pipe stuff on the clipboard?

alias clipboard='xclip -sel clip'

adtac commented 8 years ago

Neat, sounds good :+1:

Maybe something like climate cbin (to write to the clipboard from input) and climate cbout (to echo the clipboard to output so that you can use it for other pipes)?

roccomuso commented 8 years ago

Hm I'll opt for a more mnemonic solution. Maybe it's worth also having an alias mechanism?

climate c OR climate cbin climate v OR climate cbout

climate c and climate v resemble the more commons ctrl+c ctrl+v keyboard shortcuts.

adtac commented 8 years ago

@roccomuso In that case, I think we could add short args for each command :+1:

Oxicode commented 7 years ago

sounds good 👍

roccomuso commented 7 years ago

Ok, the only dependency that should be installed would be xclip

adtac commented 7 years ago

@roccomuso the package is called xclip in both aptitude and yum?

roccomuso commented 7 years ago

Available on aptitude. For yum 3rd party repos should be first enabled.