GistTree.Com
Entertainment at it's peak. The news is by your side.

Show HN: pbcopy/pbpaste across machines via Gitlab Snippets

0

glsnip logo

Replica-paste across machines the use of GitLab
Snippets
as a storage backend.

Right here’s a straightforward CLI tool inspired by the usability of pbcopy and pbpaste or xclip
but designed to work across machines.

Installation

Whereas you’ve Dash installed fling compile github.com/bradwood/glsnip.

Alternatively, it is likely you’ll well be in a put to download a binary from the Releases
net page

Configuration

You might well configure glsnip by the use of a configuration file or by the use of atmosphere
variables. Atmosphere variables will always override configuration file
settings.

Configuration file

Originate a yaml-formatted file to your $HOME itemizing called .glsnip as
follows:

gitlab_url: https://gitlab.com
token: xxxx
clipboard_name: glsnip

You might well specify an different put for the configuration file with the
--config flag.

Atmosphere variables

You might well position atmosphere variables as follows:

export GLSNIP_GITLAB_URL=https://gitlab.com
export GLSNIP_TOKEN=xxxx

Utilization

Copying examples:

glsnip reproduction <some_file.txt
ls | glsnip copy
ls | GLSNIP_GITLAB_URL=https://blah.com GLSNIP_TOKEN=xxx glsnip copy

Pasting examples:

glsnip paste   # paste to STDOUT
glsnip paste > myfile.txt
glsnip paste | much less

Read More

Leave A Reply

Your email address will not be published.