opensouls / terminal-copilot

A smart terminal assistant that helps you find the right command.
Apache License 2.0
572 stars 43 forks source link

Use pyperclip for cross-platform clipboard copy #19

Closed instance-id closed 1 year ago

instance-id commented 1 year ago

The currently used pbcopy command is a MacOS only command. Using pyperclip allows for copying the returned command to the clipboard cross-platform.

Please do let me know if any additional modifications should be made.

JoelKronander commented 1 year ago

@instance-id awesome PR! I was not aware of pyperclip. Seems like the perfect tool for us here to support cross-platform copy to clipboard.

welcome to the copilot community! Lets continue to improve it together!