aboutsummaryrefslogtreecommitdiffstats
path: root/misc/clipboard-copier
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-21 00:31:39 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-21 00:31:39 +0530
commit2d91768d88b14568139b51da4ce0c85cbe837df5 (patch)
tree242b41862ac677a3f275a56aa808a136b5722175 /misc/clipboard-copier
parent0c0f12b5286f1e80b13446c69ebef2ee03ae31ec (diff)
downloadnnn-2d91768d88b14568139b51da4ce0c85cbe837df5.tar.gz
Fix some cat abuses in code, plugins
Diffstat (limited to 'misc/clipboard-copier')
-rwxr-xr-xmisc/clipboard-copier/copier10
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/clipboard-copier/copier b/misc/clipboard-copier/copier
index 92f7dce..6ac3ba6 100755
--- a/misc/clipboard-copier/copier
+++ b/misc/clipboard-copier/copier
@@ -8,16 +8,16 @@
SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection
# Linux
-cat "$SELECTION" | xargs -0 | xsel -bi
+xargs -0 < "$SELECTION" | xsel -bi
# macOS
-# cat "$SELECTION" | xargs -0 | pbcopy
+# xargs -0 < "$SELECTION" | pbcopy
# Termux
-# cat "$SELECTION" | xargs -0 | termux-clipboard-set
+# xargs -0 < "$SELECTION" | termux-clipboard-set
# Cygwin
-# cat "$SELECTION" | xargs -0 | clip
+# xargs -0 < "$SELECTION" | clip
# Wayland
-# cat "$SELECTION" | xargs -0 | wl-copy
+# xargs -0 < "$SELECTION" | wl-copy