[go: nahoru, domu]

Skip to content

Commit

Permalink
add tumx configure
Browse files Browse the repository at this point in the history
  • Loading branch information
邵博 committed Sep 25, 2022
1 parent 4966733 commit 14eb140
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# 重新加载配置文件
# bind r source-file ~/.tmux.conf \; displayy-message "Config reloaded.."

unbind '"'
bind - splitw -v -c '#{pane_current_path}' # 垂直方向新增面板, 默认进入当前目录
unbind %
bind | splitw -h -c '#{pane_current_path}' # 水平方向新增面板, 默认进入当前目录

set-option -g mouse on # 支持鼠标操作

# 绑定hjkl键为面板切换的上下左右键
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R

# 面板和窗口操作的一些快捷键
bind -r e lastp # 选中最后一个面板
bind -r ^e last # 选中最后一个窗口
bind -r ^u swapp -U # 与前一个面板交换位置
bind -r ^d swapp -D # 与后一个面板交换位置

# 调整面板大小
# 绑定Ctrl+hjkl键为面板上下左右调整边缘的快捷键
bind -r ^k resizep -U 10
bind -r ^j resizep -D 10
bind -r ^h resizep -L 10
bind -r ^l resizep -R 10


setw -g mode-keys vi


# 使vim的主题生效
set -g default-terminal "screen-256color"


0 comments on commit 14eb140

Please sign in to comment.