diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-04-15 20:30:24 +1000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2020-04-15 10:44:56 +0000 |
commit | 2974a57943cc673972bc346b23527a95086ccdfe (patch) | |
tree | e527acbd62fbb7c156c3df552ea85f99e55512ea /pkg/config/config_linux.go | |
parent | fcdcd1c335974bab0499be5549021e6938653554 (diff) |
support copying stuff to clipboard
Diffstat (limited to 'pkg/config/config_linux.go')
-rw-r--r-- | pkg/config/config_linux.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/config/config_linux.go b/pkg/config/config_linux.go index 2dfbdb1c6..8f3223cfc 100644 --- a/pkg/config/config_linux.go +++ b/pkg/config/config_linux.go @@ -5,5 +5,6 @@ func GetPlatformDefaultConfig() []byte { return []byte( `os: openCommand: 'sh -c "xdg-open {{filename}} >/dev/null"' - openLinkCommand: 'sh -c "xdg-open {{link}} >/dev/null"'`) + openLinkCommand: 'sh -c "xdg-open {{link}} >/dev/null"' + copyToClipboardCommand: 'bash -c "echo -n {{str}} | xclip -selection clipboard"'`) } |