|
| 1 | +unbind C-b |
| 2 | +set -g prefix C-k |
| 3 | + |
| 4 | +set -ga terminal-overrides ",screen-256color:Tc" |
| 5 | + |
| 6 | +# Fine adjustment (1 or 2 cursor cells per bump) |
| 7 | +bind -n S-Left resize-pane -L 2 |
| 8 | +bind -n S-Right resize-pane -R 2 |
| 9 | +bind -n S-Down resize-pane -D 1 |
| 10 | +bind -n S-Up resize-pane -U 1 |
| 11 | +bind-key f resize-pane -Z |
| 12 | + |
| 13 | + |
| 14 | +# Coarse adjustment (5 or 10 cursor cells per bump) |
| 15 | +bind -n C-Left resize-pane -L 10 |
| 16 | +bind -n C-Right resize-pane -R 10 |
| 17 | +bind -n C-Down resize-pane -D 5 |
| 18 | +bind -n C-Up resize-pane -U 5 |
| 19 | + |
| 20 | +bind c new-window -c "#{pane_current_path}" |
| 21 | +set -g base-index 1 |
| 22 | +set -g renumber-windows on |
| 23 | + |
| 24 | +# Fine adjustment (1 or 2 cursor cells per bump) |
| 25 | +bind -n S-Left resize-pane -L 2 |
| 26 | +bind -n S-Right resize-pane -R 2 |
| 27 | +bind -n S-Down resize-pane -D 1 |
| 28 | +bind -n S-Up resize-pane -U 1 |
| 29 | + |
| 30 | +# Coarse adjustment (5 or 10 cursor cells per bump) |
| 31 | +bind -n C-Left resize-pane -L 10 |
| 32 | +bind -n C-Right resize-pane -R 10 |
| 33 | +bind -n C-Down resize-pane -D 5 |
| 34 | +bind -n C-Up resize-pane -U 5 |
| 35 | + |
| 36 | + |
| 37 | +# vim-like pane switching |
| 38 | +bind -r k select-pane -U |
| 39 | +bind -r j select-pane -D |
| 40 | +bind -r h select-pane -L |
| 41 | +bind -r l select-pane -R |
| 42 | + |
| 43 | + |
| 44 | +set -g mouse |
| 45 | + |
| 46 | +bind r source-file ~/.tmux.conf \; display "Reloaded!" |
| 47 | + |
| 48 | +# Resizing pane |
| 49 | +bind -r C-k resize-pane -U 5 |
| 50 | +bind -r C-j resize-pane -D 5 |
| 51 | +bind -r C-h resize-pane -L 5 |
| 52 | +bind -r C-l resize-pane -R 5 |
| 53 | + |
0 commit comments