aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/.cbcp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/.cbcp')
-rwxr-xr-xplugins/.cbcp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/.cbcp b/plugins/.cbcp
index bd9910a..04a09dc 100755
--- a/plugins/.cbcp
+++ b/plugins/.cbcp
@@ -9,6 +9,7 @@
# - clip.exe (WSL)
# - clip (Cygwin)
# - wl-copy (Wayland)
+# - clipboard (Haiku)
#
# Limitation: breaks if a filename has newline in it
#
@@ -43,4 +44,7 @@ elif which clip >/dev/null 2>&1; then
elif which wl-copy >/dev/null 2>&1; then
# Wayland
tr '\0' '\n' < "$selection" | wl-copy
+elif which clipboard >/dev/null 2>&1; then
+ # Haiku
+ tr '\0' '\n' < "$selection" | clipboard --stdin
fi