aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clipboard-copier/copier10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/clipboard-copier/copier b/scripts/clipboard-copier/copier
index 2aec820..e20dcf4 100755
--- a/scripts/clipboard-copier/copier
+++ b/scripts/clipboard-copier/copier
@@ -5,14 +5,16 @@
# Shell: POSIX compliant
# Author: Arun Prakash Jana
+SELECTION=~/.config/nnn/.selection
+
# Linux
-cat ~/.nnncp | xargs -0 | xsel -bi
+cat "$SELECTION" | xargs -0 | xsel -bi
# macOS
-# cat ~/.nnncp | xargs -0 | pbcopy
+# cat "$SELECTION" | xargs -0 | pbcopy
# Termux
-# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set
+# cat "$SELECTION" | xargs -0 | termux-clipboard-set
# Cygwin
-# cat ~/.nnncp | xargs -0 | clip
+# cat "$SELECTION" | xargs -0 | clip