From 250ec0198608384371d75862cb1a38a35a3a508b Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sat, 28 Dec 2024 14:18:20 -0500 Subject: [PATCH] Added info on the tmux examples to the examples/README.md --- examples/README.md | 4 ++++ examples/tmux_split.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 3b5b42d3..1616d387 100644 --- a/examples/README.md +++ b/examples/README.md @@ -80,5 +80,9 @@ Here is the list of examples in alphabetical order by filename along with a brie - Shows how to use `argparse` to easily support sub-commands within your cmd2 commands - [table_creation.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_creation.py) - Contains various examples of using cmd2's table creation capabilities +- [tmux_launch.sh](https://github.com/python-cmd2/cmd2/blob/master/examples/tmux_launch.sh) + - Shell script that launches two applications using tmux in different windows/tabs +- [tmux_split.sh](https://github.com/python-cmd2/cmd2/blob/master/examples/tmux_split.sh) + - Shell script that launches two applications using tmux in a split pane view - [unicode_commands.py](https://github.com/python-cmd2/cmd2/blob/master/examples/unicode_commands.py) - Shows that cmd2 supports unicode everywhere, including within command names diff --git a/examples/tmux_split.sh b/examples/tmux_split.sh index eea97b45..6eaf186c 100755 --- a/examples/tmux_split.sh +++ b/examples/tmux_split.sh @@ -29,6 +29,6 @@ if [ $# -eq 1 ] SECOND_COMMAND=$2 fi -tmux new-session "$FIRST_COMMAND ; read" \; \ +tmux new-session -s "tmux split pane demo" "$FIRST_COMMAND ; read" \; \ split-window "$SECOND_COMMAND ; read" \; \ select-layout even-vertical \ No newline at end of file