Created
October 12, 2012 01:30
-
-
Save gotnix/3876838 to your computer and use it in GitHub Desktop.
终端复用软件TMUX 配置文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 此类配置可以在命令行模式中输入:show-options -g查询 | |
| ## 开启可视化响铃,现在状态栏上。 | |
| set-option -g visual-bell on | |
| ## 窗口的初始序号;默认为0,这里设置为1 | |
| set-option -g base-index 1 | |
| ## 提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒 | |
| set-option -g display-time 5000 | |
| ## 控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒 | |
| set-option -g repeat-time 1000 | |
| ## 操作状态栏时的默认键盘布局;可以设置为vi或emacs | |
| set-option -g status-keys emacs | |
| ## 状态栏右方的内容;这里的设置显示为“时:分_月/日_周” | |
| set-option -g status-right "#(date +%H:%M_%m/%d_%a)" | |
| ## 状态栏右方的内容长度;建议把更多的空间留给状态栏左方(用于列出当前窗口) | |
| set-option -g status-right-length 16 | |
| ## 开启状态栏的utf-8支持 | |
| set-option -g status-utf8 on | |
| ## 启用鼠标;开启以下选项将不能直接通过鼠标\ | |
| ## 在终端里选择、复制、粘贴等操作,均需要通过TMUX进行操作。 | |
| #set-option -g mouse-resize-pane on | |
| #set-option -g mouse-select-pane on | |
| #set-option -g mouse-select-window on | |
| #此类设置可以在命令行模式中输入show-window-options -g查询 | |
| ## 复制模式中的默认键盘布局;可以设置为vi或emacs | |
| set-window-option -g mode-keys emacs | |
| ## 开启窗口的UTF-8支持 | |
| set-window-option -g utf8 on | |
| # 添加自定义快捷键,可以在命令行模式运行:lsk查看绑定的快捷键。 | |
| ## 将激活控制台的快捷键由Ctrl+b修改为Ctrl+\ | |
| unbind-key "C-b" | |
| set-option -g prefix "C-\\" | |
| bind-key "C-\\" send-prefix | |
| ## 重新加载配置文件 | |
| bind-key R source-file ~/.tmux.conf \; display-message ":-) Reload Configure Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment