gist icon indicating copy to clipboard operation
gist copied to clipboard

Clipboard use

Open alexreg opened this issue 10 years ago • 5 comments

The utility seems to use xclip before pbcopy if both are present on the system. This is undesirable behaviour for me, on OS X. Can we configure it to use pbcopy first?

alexreg avatar Oct 08 '15 16:10 alexreg

Sure, should be an easy pull request ;)

ConradIrwin avatar Oct 08 '15 16:10 ConradIrwin

I’m afraid I don’t know any Ruby! Also, is just reversing the order fine, or do you want to add an option for it? If so then it would definitely be beyond my abilities.

On 8 Oct 2015, at 17:40, Conrad Irwin [email protected] wrote:

Sure, should be an easy pull request ;)

— Reply to this email directly or view it on GitHub https://github.com/defunkt/gist/issues/217#issuecomment-146614672.

alexreg avatar Oct 08 '15 16:10 alexreg

I don't think an option is needed. I was imagining that they were mutually exclusive — presumable you installed xclip with quartz on a mac?

ConradIrwin avatar Oct 08 '15 16:10 ConradIrwin

Indeed. XClip is still useful for some apps on Mac, but pbcopy/pbpaste is the one that should be used for command line utilities, really.

On 8 Oct 2015, at 17:46, Conrad Irwin [email protected] wrote:

I don't think an option is needed. I was imagining that they were mutually exclusive — presumable you installed xclip with quartz on a mac?

— Reply to this email directly or view it on GitHub https://github.com/defunkt/gist/issues/217#issuecomment-146617842.

alexreg avatar Oct 08 '15 18:10 alexreg

I don't know how to build the utility, but I've submitted a pull-request for what I think is the fix.

alexreg avatar Oct 08 '15 19:10 alexreg