summaryrefslogtreecommitdiffstats
path: root/bridge/lib/bridge/bin/paste
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/lib/bridge/bin/paste')
-rwxr-xr-xbridge/lib/bridge/bin/paste30
1 files changed, 0 insertions, 30 deletions
diff --git a/bridge/lib/bridge/bin/paste b/bridge/lib/bridge/bin/paste
deleted file mode 100755
index d3ed1fc5..00000000
--- a/bridge/lib/bridge/bin/paste
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /bin/sh
-#
-# Paste some data to a session.
-#
-## SYNOPSIS
-#
-# bridge paste SESSION DATA...
-# bridge paste SESSION < DATA
-#
-set -euf
-
-target="$1"; shift
-
-# paste args or stdin
-if test $# -gt 0; then
- tmux -L bridge set-buffer -b 0 "$*"
-else
- # use aux file instead of direct stdin for Vim and when used from $SHELL
- if test -n "${VIMRUNTIME-}" || tty >/dev/null; then
- path=`mktemp`
- trap "rm -f $path" EXIT INT TERM
- cat>$path
- else
- path=-
- fi
- tmux -L bridge load-buffer -b 0 $path
-fi
-
-tmux -L bridge paste-buffer -b 0 -t "$target"
-tmux -L bridge set-buffer -b 0 READY.