summaryrefslogtreecommitdiffstats
path: root/bridge/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-12-30 03:03:22 +0100
committermakefu <github@syntax-fehler.de>2013-12-30 03:03:22 +0100
commit96151bd07330aee400fb99fd9f8f117bae42c9e5 (patch)
tree44c3f35a4d89e96ec97812a5879baa30bb4df0b8 /bridge/lib
parent4ae4f5f461a6d5f6290ef7da516ea22db93bfd91 (diff)
bridge -> Cancer/\1
Diffstat (limited to 'bridge/lib')
-rwxr-xr-xbridge/lib/bridge/bin/attach10
-rwxr-xr-xbridge/lib/bridge/bin/create15
-rwxr-xr-xbridge/lib/bridge/bin/destroy12
-rwxr-xr-xbridge/lib/bridge/bin/list10
-rwxr-xr-xbridge/lib/bridge/bin/paste30
5 files changed, 0 insertions, 77 deletions
diff --git a/bridge/lib/bridge/bin/attach b/bridge/lib/bridge/bin/attach
deleted file mode 100755
index f456f8a6..00000000
--- a/bridge/lib/bridge/bin/attach
+++ /dev/null
@@ -1,10 +0,0 @@
-#! /bin/sh
-#
-# Attach current tty to a session.
-#
-## SYNOPSIS
-#
-# bridge attach SESSION
-#
-set -euf
-exec tmux -L bridge attach-session -t "$1"
diff --git a/bridge/lib/bridge/bin/create b/bridge/lib/bridge/bin/create
deleted file mode 100755
index 2df8b214..00000000
--- a/bridge/lib/bridge/bin/create
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/sh
-#
-# Create a new session.
-#
-## SYNOPSIS
-#
-# bridge create SESSION [COMMAND [ARGS ...]]
-#
-# COMMAND defaults to $SHELL (by implication / tmux)
-#
-set -euf
-target="$1"; shift
-tmux -L bridge new-session -d -s "$target" "$@"
-tmux -L bridge set-buffer READY.
-exec "$(dirname $0)/attach" "$target"
diff --git a/bridge/lib/bridge/bin/destroy b/bridge/lib/bridge/bin/destroy
deleted file mode 100755
index dffdbd8a..00000000
--- a/bridge/lib/bridge/bin/destroy
+++ /dev/null
@@ -1,12 +0,0 @@
-#! /bin/sh
-#
-# Destroy a session.
-#
-## SYNOPSIS
-#
-# bridge destroy SESSION
-#
-# Note that this may destroy similar named sessions (by implication / tmux)
-#
-set -euf
-tmux -L bridge kill-session -t "$1"
diff --git a/bridge/lib/bridge/bin/list b/bridge/lib/bridge/bin/list
deleted file mode 100755
index 0b767a9b..00000000
--- a/bridge/lib/bridge/bin/list
+++ /dev/null
@@ -1,10 +0,0 @@
-#! /bin/sh
-#
-# Write a list of all session names to stdout.
-#
-## SYNOPSIS
-#
-# bridge list
-#
-set -euf
-exec tmux -L bridge list-sessions | cut -d: -f1
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.