nnn/scripts/clipboard-copier/copier
Arun Prakash Jana 5cf3471716
Plugins!
2019-04-18 20:32:53 +05:30

19 lines
338 B
Bash
Executable file

#!/usr/bin/env sh
# Description: Copy selection to clipboard
#
# Shell: POSIX compliant
# 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