diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-19 15:56:48 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-19 16:08:37 +0530 |
commit | 1c96ac4ff595cd974d4bae6c07c35c41f9ad4ef4 (patch) | |
tree | 39b3066694b020d208dc443c40c9be0b2f2f6fb2 /user-scripts/copier.sh | |
parent | 40cecab4dadbc633a41e988719e9c5471bbd3bf6 (diff) | |
download | nnn-1c96ac4ff595cd974d4bae6c07c35c41f9ad4ef4.tar.gz |
Prepare for release v2.3
Diffstat (limited to 'user-scripts/copier.sh')
-rwxr-xr-x | user-scripts/copier.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/user-scripts/copier.sh b/user-scripts/copier.sh new file mode 100755 index 0000000..a99b88b --- /dev/null +++ b/user-scripts/copier.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env sh + +# Description: Copy selection to clipboard +# +# Shell: generic +# Author: Arun Prakash Jana + +# Linux +cat ~/.nnncp | xargs -0 | xsel -bi + +# macOS +# cat ~/.nnncp | xargs -0 | pbcopy + +# Termux +# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set + +# Cygwin +# cat ~/.nnncp | xargs -0 | clip |