nnn/scripts/clipboard-copier/copier

19 lines
338 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2017-10-10 14:59:48 +00:00
2019-01-05 05:27:11 +00:00
# Description: Copy selection to clipboard
#
# Shell: POSIX compliant
2019-01-05 05:27:11 +00:00
# Author: Arun Prakash Jana
2018-12-01 16:12:51 +00:00
# Linux
cat ~/.nnncp | xargs -0 | xsel -bi
# macOS
# cat ~/.nnncp | xargs -0 | pbcopy
2018-11-30 00:49:19 +00:00
# Termux
2018-12-01 16:12:51 +00:00
# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set
# Cygwin
# cat ~/.nnncp | xargs -0 | clip