pip install --user tmuxp # or brew install tmuxp # or sudo apt install tmuxp
1 2 3 4 5 6 7 8 9 10 11 12 13
session_name:4-pane-split windows: -window_name:devwindow layout:tiled shell_command_before: -cd~/# run as a first command in all panes panes: -shell_command:# pane no. 1 -cd/var/log# run multiple commands in this pane -ls-al|grep\.log -echosecondpane# pane no. 2 -echothirdpane# pane no. 3 -echoforthpane# pane no. 4
1
tmuxp load ./mysession.yaml
tmux插件 tmux-resurrect
1 2 3 4
# List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect'# <-- 这个是新添加的