fix: add shortcut for tmux mouse on
This commit is contained in:
+15
-7
@@ -13,9 +13,17 @@ bind | splitw -h -c '#{pane_current_path}'
|
|||||||
|
|
||||||
# 开启 24bit 真彩色,tmux > 2.2 开始支持
|
# 开启 24bit 真彩色,tmux > 2.2 开始支持
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
set-option -ga terminal-overrides ",*256col*:Tc"
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
|
|
||||||
|
# 开启鼠标模式
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# 绑定 `Ctrl-b m` 切换鼠标模式
|
||||||
|
bind m \
|
||||||
|
if-shell -F "#{mouse}" \
|
||||||
|
"set -g mouse off ; display 'Mouse: OFF'" \
|
||||||
|
"set -g mouse on ; display 'Mouse: ON'"
|
||||||
|
|
||||||
set-option -g mouse on
|
|
||||||
|
|
||||||
# 绑定hjkl键为面板切换的上下左右键
|
# 绑定hjkl键为面板切换的上下左右键
|
||||||
bind k select-pane -U # 绑定k为↑
|
bind k select-pane -U # 绑定k为↑
|
||||||
@@ -38,13 +46,13 @@ set -s escape-time 1
|
|||||||
bind L switch-client -l
|
bind L switch-client -l
|
||||||
|
|
||||||
# 设置窗口名为当前目录名
|
# 设置窗口名为当前目录名
|
||||||
set-option -g status-interval 10
|
set -g status-interval 10
|
||||||
set-option -g automatic-rename on
|
set -g automatic-rename on
|
||||||
set-option -g automatic-rename-format '#{b:pane_current_path}'
|
set -g automatic-rename-format '#{b:pane_current_path}'
|
||||||
|
|
||||||
set-option -g set-titles on
|
set -g set-titles on
|
||||||
#set-option -g set-titles-string "#{session_name} - #{host}"
|
#set-option -g set-titles-string "#{session_name} - #{host}"
|
||||||
set-option -g set-titles-string "#{session_name}"
|
set -g set-titles-string "#{session_name}"
|
||||||
|
|
||||||
# List of plugins
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
|||||||
Reference in New Issue
Block a user