mirror of
https://github.com/jarun/nnn.git
synced 2024-11-01 00:47:18 +00:00
19 lines
330 B
Bash
Executable file
19 lines
330 B
Bash
Executable file
#!/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
|