nnn/scripts/user-scripts/copier.sh

19 lines
330 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2017-10-10 20:29:48 +05:30
2019-01-05 10:57:11 +05:30
# Description: Copy selection to clipboard
#
# Shell: generic
# Author: Arun Prakash Jana
2018-12-01 21:42:51 +05:30
# Linux
cat ~/.nnncp | xargs -0 | xsel -bi
# macOS
# cat ~/.nnncp | xargs -0 | pbcopy
2018-11-30 06:19:19 +05:30
# Termux
2018-12-01 21:42:51 +05:30
# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set
# Cygwin
# cat ~/.nnncp | xargs -0 | clip