mynote/linux/tmux.md
2024-10-14 19:19:57 +08:00

28 lines
349 B
Markdown

# tmux
## tlayout
```bash
#! /bin/sh
#
# tenv.sh
# Copyright (C) 2023 veypi <i@veypi.com>
#
# Distributed under terms of the MIT license.
#
s=$1
tmux new-session -s $s -n f -d
# tmux send-keys -t $s 'p' C-m
tmux split-window -v -p 70 -t $s:1.1
tmux split-window -h -p 70 -t $s:1.2
tmux split-window -h -p 70 -t $s:1.1
tmux attach -t $1
```