8000 GitHub - bramtechs/xcreep: 📎 Simple wrapper to xclip in Go
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bramtechs/xcreep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xcreep

xcreep is an easy wrapper for xclip made in Go.

Installation

Simply

go get github.com/gmelodie/xcreep

Usage

  1. Copy the contents of a file, say example.txt, to the clipboard:
./xcreep example.txt

xcreep copy

  1. Paste it wherever you want with CTRL+V or Right-click > Paste.

xcreep paste

If you are on a different directory, just use either the absolute or the relative paths to that file:

./xcreep 
558C
/home/root/flag.txt    # absolute path
./xcreep ../root/flag.txt       # relative path (if you are in /home/some-dir)

Why?

Because I was tired of (1) having to look up how to copy to clipboard with xclip and (2) not being able to cat file.txt > xclip or cat file.txt | xclip or simply xclip file.txt

But you can just make a simple script to wrap xclip

I know, but it was fun coding it in Go though

About

📎 Simple wrapper to xclip in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0