aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/copier
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-27 22:37:06 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-27 22:37:06 +0530
commit0a21d90ad5c8e5cc4eb52a454b7aa32e642c431d (patch)
tree627865aa6ff120dfd8aeaa6f3c92a0b3fe2915a7 /scripts/copier
parent70d371c214ba3c0913b40064745e73510e33be57 (diff)
downloadnnn-0a21d90ad5c8e5cc4eb52a454b7aa32e642c431d.tar.gz
Fix #143: support copy to clipboard
Diffstat (limited to 'scripts/copier')
-rwxr-xr-xscripts/copier/copier.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/copier/copier.sh b/scripts/copier/copier.sh
index 5629301..0f5a195 100755
--- a/scripts/copier/copier.sh
+++ b/scripts/copier/copier.sh
@@ -1,5 +1,3 @@
#!/bin/sh
-# comment the next line to convert newlines to spaces
-IFS=
-echo -n $1 | `xsel --clipboard --input`
+cat /path/to/.nnncp | xargs -0 | xsel -bi