Thomas 1 周之前
父节点
当前提交
d9450f8ade
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      tmux.conf

+ 8 - 2
tmux.conf

@@ -1,7 +1,9 @@
 # sudo ln -s /usr/local/bin/tmux /usr/bin/tmux
 # set-option -sa terminal-overrides ",xterm*:Tc"
+# Dont forget to git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
 set -g default-terminal screen-256color
 set -g mouse on
+set -g xterm-keys on
 unbind C-b
 set -g prefix C-Space
 bind C-Space send-prefix
@@ -13,6 +15,12 @@ bind j select-pane -D
 bind k select-pane -U
 bind l select-pane -R
 
+# Pane resizing (vim-like, Shift+HJKL)
+bind -n M-h resize-pane -L 3
+bind -n M-j resize-pane -D 3
+bind -n M-k resize-pane -U 3
+bind -n M-l resize-pane -R 3
+
 # Start windows and panes at 1, not 0
 set -g base-index 1
 set -g pane-base-index 1
@@ -39,8 +47,6 @@ set -g @plugin 'wfxr/tmux-power'
 set -g @plugin 'tmux-plugins/tpm'
 set -g @plugin 'tmux-plugins/tmux-sensible'
 set -g @plugin 'christoomey/vim-tmux-navigator'
-# set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
-# 
 set -g @plugin 'tmux-plugins/tmux-yank'
 set -g @plugin 'tmux-plugins/tmux-resurrect'
 set -g @plugin 'tmux-plugins/tmux-continuum'