-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
邵博
committed
Sep 25, 2022
1 parent
4966733
commit 14eb140
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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" | ||
|
||
|