Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created March 6, 2017 22:52
Show Gist options
  • Save takikawa/9c429dfc24d90f6269d452ff4d0f8a7d to your computer and use it in GitHub Desktop.
Save takikawa/9c429dfc24d90f6269d452ff4d0f8a7d to your computer and use it in GitHub Desktop.
keybase fs clipboard
#!/bin/bash
case $1 in
paste)
xclip -o -selection "clipboard" > /keybase/private/$USER/clipboard;;
copy)
xclip -i /keybase/private/$USER/clipboard -selection "clipboard";;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment