https://github.com/refi64/clip
A simple shell script that wraps xclip and/or xsel in a portable way.
https://github.com/refi64/clip
Last synced: 10 months ago
JSON representation
A simple shell script that wraps xclip and/or xsel in a portable way.
- Host: GitHub
- URL: https://github.com/refi64/clip
- Owner: refi64
- License: mit
- Created: 2017-01-23T18:40:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T19:36:23.000Z (over 7 years ago)
- Last Synced: 2025-08-28T15:56:33.570Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
clip
====
A simple shell script that wraps xclip and/or xsel in a portable way.
How to install
**************
::
$ curl https://raw.githubusercontent.com/kirbyfan64/clip/master/clip | sudo bash /dev/stdin -i
Or::
$ git clone https://github.com/kirbyfan64/clip.git
$ cd clip
$ sudo bash clip -i
Examples
********
Copy standard input::
$ echo stuff | clip
Copy file contents::
$ clip myfile
Paste to standard output::
$ clip -o
Paste to file::
$ clip myfile
Copy/paste while stripping newlines::
$ echo 123 | clip -n
$ clip -on
Use xsel instead of xclip when possible::
$ clip -s other_stuff_goes_here