Skip to content

Commit 250ec01

Browse files
committed
Added info on the tmux examples to the examples/README.md
1 parent 520c147 commit 250ec01

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,9 @@ Here is the list of examples in alphabetical order by filename along with a brie
8080
- Shows how to use `argparse` to easily support sub-commands within your cmd2 commands
8181
- [table_creation.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_creation.py)
8282
- Contains various examples of using cmd2's table creation capabilities
83+
- [tmux_launch.sh](https://github.com/python-cmd2/cmd2/blob/master/examples/tmux_launch.sh)
84+
- Shell script that launches two applications using tmux in different windows/tabs
85+
- [tmux_split.sh](https://github.com/python-cmd2/cmd2/blob/master/examples/tmux_split.sh)
86+
- Shell script that launches two applications using tmux in a split pane view
8387
- [unicode_commands.py](https://github.com/python-cmd2/cmd2/blob/master/examples/unicode_commands.py)
8488
- Shows that cmd2 supports unicode everywhere, including within command names

examples/tmux_split.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ if [ $# -eq 1 ]
2929
SECOND_COMMAND=$2
3030
fi
3131

32-
tmux new-session "$FIRST_COMMAND ; read" \; \
32+
tmux new-session -s "tmux split pane demo" "$FIRST_COMMAND ; read" \; \
3333
split-window "$SECOND_COMMAND ; read" \; \
3434
select-layout even-vertical

0 commit comments

Comments
 (0)