#!/usr/bin/env sh

buf="$*"

if test -n "${buf}"; then
  tmux -L live send -t 2 "${buf}" Enter
  exit
fi

IFS=
while read -r line; do
  tmux -L live send -t 2 "${line}" Enter
done
