分享 tmux 快捷方式
wuruxu
·
2026-05-18
·
via V2EX
在 .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
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。