aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/user-scripts/copier.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/user-scripts/copier.sh')
-rwxr-xr-xscripts/user-scripts/copier.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/user-scripts/copier.sh b/scripts/user-scripts/copier.sh
new file mode 100755
index 0000000..3d8ccb5
--- /dev/null
+++ b/scripts/user-scripts/copier.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# 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