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