From 96595c5f0f8e90a4a76c4e38c61181c283dc2064 Mon Sep 17 00:00:00 2001 From: veypi Date: Mon, 14 Oct 2024 19:19:57 +0800 Subject: [PATCH] tmux --- linux/tmux.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linux/tmux.md diff --git a/linux/tmux.md b/linux/tmux.md new file mode 100644 index 0000000..418a365 --- /dev/null +++ b/linux/tmux.md @@ -0,0 +1,27 @@ +# tmux + + +## tlayout + +```bash + +#! /bin/sh +# +# tenv.sh +# Copyright (C) 2023 veypi +# +# 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 + + +```