- tmux
Ctl+B D # Detach from session[detached (from session 0)]ssh from any other computer, resume that session
$ tmux a[ttach]$ tmux new -s bobwhen detaching it
[detached (from session bob)]$ tmux ls
0: 1 windows (created Fri Oct 25 19:09:12 2024)
bob: 1 windows (created Fri Oct 25 19:22:36 2024)$ tmux a -t 0$ tmux kill-session -t bob
$ tmux ls
bob: 1 windows (created Fri Oct 25 19:22:36 2024)$ tmux kill-server- Ctl + B c
- notice the bottom left corner, it shows the window infos
[0] 0:zsh- 1:zsh*
- Ctl + B n
[0] 0:zsh* 1:zsh-
- Ctl + B w
- Ctl + B &
- then type
yto confirm
- then type
- Split window horizontally
- Ctl + B %
- Split window vertically
- Ctl + B "
- Ctl + B arrow
- Ctl + B q
to move to specific panel with panel number, e.g. panel 2
- Ctl + B q 2
- Ctl + B x
- then type
yto confirm
- then type
原因是, 原因是本机 env no_proxy 中 带了 本机的 域名, 导致 tmux session 中的 proxy / no_proxy 设置出现问题。 删掉后解决。
# tmux 环境下
tmux new-session -d "env | sort > /tmp/env-tmux.log"
# 正常 zsh 环境下
env | sort > /tmp/env-zsh.log
# diff 两者的区别,看看是否 proxy / no_proxy 有区别
diff -u /tmp/env-zsh.log /tmp/env-tmux.log