You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/.local/bin/tsession

10 lines
138 B

#! /usr/bin/env sh
session="$1"
cmd="$2"
tmux new -s $session -d
tmux send-keys -t $session "$cmd && exit" C-m
tmux attach -t $session