1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-27 09:03:17 +00:00
dotfiles/.local/bin/clip

8 lines
107 B
Plaintext
Raw Normal View History

2020-08-04 01:40:36 +00:00
#!/bin/bash
if [ $# -eq 0 ]
then
cat - | xclip -i -sel clip
else
echo $@ | xclip -i -sel clip
fi