Skip to content

Instantly share code, notes, and snippets.

@tylorr
Created August 22, 2017 05:55
Show Gist options
  • Save tylorr/a9d78e3da10fa1e708b17b3fa66598e6 to your computer and use it in GitHub Desktop.
Save tylorr/a9d78e3da10fa1e708b17b3fa66598e6 to your computer and use it in GitHub Desktop.
#!/bin/bash
while [[ $# > 0 ]]
do
key="$1"
case $key in
-o|-out)
OUT=1
shift
;;
*)
shift
;;
esac
done
if [[ $OUT -eq 0 ]]; then
cat - > /dev/clipboard
else
cat /dev/clipboard
fi
@tylorr
Copy link
Author

tylorr commented Aug 22, 2017

Minimal implementation of xclip used by password-store in the MSYS2 environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment