当然有,经由过程设置一个模式解决。
- ctrl+b, :setw synchronize-panes
window: 窗口,就是我们屏上看到的┞菲握台界面,可以跟iTerm2上一样,有多个tab页,实际概念上也可以直接懂得为tab页。
设置成功后,在一个panel内打字,会同步到所有panel上,如下,我只在一个panel琅绫擎输入了test。
想解除怎么办? 同样的敕令(synchronize-panes)再输入一次就解除这种模式。
tmux的一些缺省设备功能可以设备在文件里,路径是:~/.tmux.conf
share一下我今朝在用的:
- set-option -g default-shell /bin/zsh
- setw -g mode-keys vi
- set-option -g default-command "reattach-to-user-namespace -l zsh"
- set-window-option -g mode-mouse on
- set -g mouse-select-pane on
- set -g mouse-resize-pane on
- set -g mouse-select-window on
- # Setup 'v' to begin selection as in Vim
- bind-key -t vi-copy v begin-selection
- bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
- # Update default binding of `Enter` to also use copy-pipe
- unbind -t vi-copy Enter
- bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
- # bind a reload key
- bind R source-file ~/.tmux.conf ; display-message "Config reloaded.."
【编辑推荐】
- 开辟一个Linux调试器(一):预备情况
- Linux基金会泄漏将来 Linux内核可能会惹人情势验证
- 懂得Linux的平均负载和机能监控
- Linux桌面体系的优势
- 9个拭魅战及面试常用Shell脚本编写
推荐阅读
先说下我所应用的体系情况, 一个新创建的 Docker 容器。 应用 cat /etc/redhat-release 可以看到运行的是 CentOS 7.3 版本。在纯净的 CentOS 体系上安装 Python 情况重要有两种办法。 一>>>详细阅读
本文标题:黑屏操作利器,多屏批量shell命令发送
地址:http://www.17bianji.com/lsqh/35920.html
1/2 1