config/.local/bin/ssh-send

14 lines
131 B
Bash
Executable File

#!/usr/bin/env bash
host=$1
shift
tmux neww -n "$host"
tmux send-keys -t "$host" "ssh $host
"
tmux send-keys -t "$host" "$@
"