Calmcode - cool cli: yank

yank

1 2 3 4 5 6

Yank is an amazing tool that allows you to keep your hands on the keyboard.

Installation

You can find more information about this project on github.

If you're on a mac you can install the tool via;

brew install yank

On many linux distributions you should be able to install it via;

apt-get install yank

You can confirm the installation command for your linux distribution.

Usage

If you run this command from a folder that contains files you should be able to experience a nice preview.

ls -lhat | yank

It's especially powerful when you want to fetch an id for a later command. Things like;

docker ps | yank

Windows/Ubuntu/Debian

We've been notified on GitHub that you may need to call via yank-cli on Ubuntu and Debian. It's also been suggested that on Windows 10 and on WSL you may need to explicitly send the output to the clipboard via;

ls -lhat | yank | clip.exe