This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
2021-11-20 15:48:24 +01:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
|
|
|
session="$1"
|
|
|
|
cmd="$2"
|
|
|
|
|
|
|
|
tmux new -s $session -d
|
2021-12-02 15:35:05 +01:00
|
|
|
tmux send-keys -t $session "$cmd && exit" C-m
|
2021-11-20 15:48:24 +01:00
|
|
|
tmux attach -t $session
|
|
|
|
|