automate tmux 1

automate tmux

#!/bin/sh
tmux new-session -d 'vim'
tmux split-window -v 'ipython'
tmux split-window -h
tmux new-window 'mutt'
tmux -2 attach-session -d

Here is what the above code is Doing:
1. Create a new session with a single window.
2. Split the window vertically.
3. Split the window horizontally.
4. Create a new window.
5. Attach to the session.

Similar Posts