From 10dff79c5e5ff566c28eb85fcdf1e9710e114303 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Fri, 18 Jun 2021 18:02:36 -0400 Subject: [PATCH] tmuxt: new script --- man/tmuxt.1.scd | 16 ++++++++++++++++ tmuxt | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 man/tmuxt.1.scd create mode 100755 tmuxt diff --git a/man/tmuxt.1.scd b/man/tmuxt.1.scd new file mode 100644 index 0000000..c9d9b97 --- /dev/null +++ b/man/tmuxt.1.scd @@ -0,0 +1,16 @@ +tmuxt(1) + +# NAME +tmuxt - launch tmux and close the session when you are complete + +# SYNOPSIS +*tmuxt* [tmux options] + +# DESCRIPTION +Wrapper script around tmux to prevent sessions from piling up. Creates a new +session named the pid of the tmuxt process, and kills it when the process emits +the EXIT signal. All command line arguments are passed directly to tmux. + +# COPYRIGHT +This is free and unencumbered software released into the public domain. For more +information, please refer to . \ No newline at end of file diff --git a/tmuxt b/tmuxt new file mode 100755 index 0000000..17e8a72 --- /dev/null +++ b/tmuxt @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +trap "tmux kill-session -t $$" EXIT +st -e tmux new-session -s $$ $@ -- 2.39.2