External Publication
Visit Post

分享 tmux 快捷方式

V2EX [Unofficial] May 18, 2026
Source
在 .bashrc 添加了下面的快捷方式,用不着每次都输入 tmux ... aa() { if tmux has-session -t aa 2>/dev/null; then tmux attach -t aa else tmux new -s aa fi } rr() { if tmux has-session -t rr 2>/dev/null; then tmux attach -t rr else tmux new -s rr fi }

Discussion in the ATmosphere

Loading comments...