美文网首页
比较好用的tmux配置文件

比较好用的tmux配置文件

作者: Epimenides | 来源:发表于2022-01-05 09:48 被阅读0次

.tmux.conf配置文件

set-option -g status-keys vi                         
setw -g mode-keys vi        

setw -g monitor-activity on                                                                                                                                             
# setw -g c0-change-trigger 10                          
# setw -g c0-change-interval 100                                                                                                                                                  
# setw -g c0-change-interval 50                                         
# setw -g c0-change-trigger  75          

set-window-option -g automatic-rename on                            
set-option -g set-titles on                         
set -g history-limit 100000                                                                                                                                                
#set-window-option -g utf8 on   

# set command prefix                                 
set-option -g prefix C-a                                          
unbind-key C-b                                             
bind-key C-a send-prefix

bind h select-pane -L                
bind j select-pane -D                                
bind k select-pane -U                                  
bind l select-pane -R   
                                                                                                                                                           
bind -n M-Left select-pane -L                      
bind -n M-Right select-pane -R                      
bind -n M-Up select-pane -U                            
bind -n M-Down select-pane -D    
                                                                                                                                
bind < resize-pane -L 7                                 
bind > resize-pane -R 7                                  
bind - resize-pane -D 7                                       
bind + resize-pane -U 7     
                                                                                                                                                                                
bind-key -n M-l next-window                                                
bind-key -n M-h previous-window         
                                                                                                                                                                                                                  
set -g status-interval 1                                          
# status bar                                        
set -g status-bg black 
set -g status-fg blue                                                                                                                

#set -g status-utf8 on
set -g status-justify centre
set -g status-bg default
set -g status-left " #[fg=green]#S@#H #[default]"
set -g status-left-length 20

# mouse support
# for tmux 2.1
# set -g mouse-utf8 on
set -g mouse on
#
# for previous version
#set -g mode-mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mouse-select-window on


#set -g status-right-length 25
set -g status-right "#[fg=green]%H:%M:%S #[fg=magenta]%a %m-%d #[default]"

# fix for tmux 1.9
bind '"' split-window -vc "#{pane_current_path}"
bind '%' split-window -hc "#{pane_current_path}"
bind 'c' new-window -c "#{pane_current_path}"

# run-shell "powerline-daemon -q"

# vim: ft=conf

相关文章

  • Kit-tmux学习

    .tmux.conf 配置文件,很好用。备份一下 .tmux.conf 放到~./路径下

  • 比较好用的tmux配置文件

    .tmux.conf配置文件

  • Tmux 学习摘要2--配置

    配置文件 系统范围的配置文件是 /etc/tmux.conf,而针对个人的配置文件在 ~/.tmux.conf。 ...

  • tmux相关

    tmux常用配置文件 tmux中使用spacemacs时,按esc后反应慢,无法立即退出到vi模式 vim ~/....

  • tmux常用命令与快捷键

    安装 修改tmux的组合键 tmux 确实很好用,不过由于本人的手指不是很长,个人建议是修改下tmux中的组合键c...

  • tmux常用命令与快捷键

    安装 修改tmux的组合键 tmux 确实很好用,不过由于本人的手指不是很长,个人建议是修改下tmux中的组合键c...

  • Tmux使用

    一、Tmux配置 秉承着“能用就行,不折腾”的原则,直接使用网友现成的配置文件链接:好看又强大的 tmux 懒人配...

  • tmux 开机启动

    tmux是个非常好用的终端复用器,之前写过tmux入门教程,有兴趣的可以看这里https://www.jiansh...

  • tmux,oh-my-zsh linux必备工具

    zsh带有tmux提示需要加下zsh 推荐几个好用插件 zsh-history-substring-searchh...

  • 终端利器tmux命令速查

    配置文件:https://github.com/gpakosz/.tmux基本操作: ? 列出所有快捷键;按q...

网友评论

      本文标题:比较好用的tmux配置文件

      本文链接:https://www.haomeiwen.com/subject/axshcrtx.html