Skip to content

Instantly share code, notes, and snippets.

@chrisdone-artificial
Last active March 29, 2022 18:07
Show Gist options
  • Save chrisdone-artificial/89ff606c0e93dc2e39fb29b161b0bd41 to your computer and use it in GitHub Desktop.
Save chrisdone-artificial/89ff606c0e93dc2e39fb29b161b0bd41 to your computer and use it in GitHub Desktop.
macOS send clipboard to Emacs
HostName 192.168.64.2
User chris
IdentityFile /Users/chris/.ssh/id_ed25519
# The below enables instantaneous connections instead of 200ms
ControlPath /tmp/linux-socket
ControlPersist yes
#!/bin/bash
payload=$(LANG=en_US.UTF-8 pbpaste | base64)
ssh linux "/home/chris/.nix-profile/bin/emacsclient -e '(update-clipboard \"$payload\")'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment