Skip to content

Commit

Permalink
Added info on the tmux examples to the examples/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Dec 28, 2024
1 parent 520c147 commit 250ec01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion examples/tmux_split.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 250ec01

Please sign in to comment.