From 06ca4bef375c2259e5d510864bbab8b84a922df9 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Mon, 29 Jan 2024 20:35:15 +0100 Subject: [PATCH] Add catmux script This helper should maket it easier to interact with running catmux sessions. --- script/catmux | 9 +++++++++ setup.py | 1 + 2 files changed, 10 insertions(+) create mode 100644 script/catmux diff --git a/script/catmux b/script/catmux new file mode 100644 index 0000000..340abb0 --- /dev/null +++ b/script/catmux @@ -0,0 +1,9 @@ +#!/bin/bash +# This script serves as an entry point to use the `catmux` command similar to +# the `tmux` command. Since catmux starts its sessions on its own server by +# default this script should provide a simple alternative to interact with +# catmux sessions easily. + +TMUX_SERVER="${CATMUX_DEFAULT_SERVER:-catmux}" + +tmux -L $TMUX_SERVER $@ diff --git a/setup.py b/setup.py index 3fcd999..9b30aab 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ entry_points={ "console_scripts": ["catmux_create_session=catmux.catmux_create_session:main"] }, + scripts=["script/catmux"], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",