1
0
forked from x/icebergs
icebergs/misc/tmux/tmux.shy
2021-07-19 00:42:31 +08:00

36 lines
804 B
Plaintext

title "tmux"
refer `
官网 http://tmux.github.io/
文档 http://man.openbsd.org/OpenBSD-current/man1/tmux.1
源码 https://github.com/tmux/tmux
`
chapter "源码"
field tmux web.code.tmux.tmux
field tmux web.code.inner args `usr/install/tmux-3.1b cmd-bind-key.c`
section "构建"
spark shell `
yum install -y wget make gcc
yum install -y libevent-devel.x86_64 ncurses-devel.x86_64
wget https://github.com/tmux/tmux/releases/download/3.1b/tmux-3.1b.tar.gz
tar xvf tmux-3.1b.tar.gz && cd tmux-3.1b
./configure --prefix=$PWD/_install
make -j8 && make install
`
section "启动"
spark shell `
cd ./_install
./bin/tmux -S $PWD/tmux.socket
`
chapter "应用"
field "文本" web.code.tmux.text
field "缓存" web.code.tmux.buffer
field "脚本" web.code.tmux.script
field "会话" web.code.tmux.session