diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-02-10 06:30:22 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-02-10 06:30:22 +0100 |
| commit | aea39b153e72b4df07506b7de42b6a4232d12c61 (patch) | |
| tree | 61c09e79deb2768ea96a3d0d0b9fc571727b2fc8 /.tmux.conf | |
| parent | db8dd67caa7363c2088ea8f99f547048b195a087 (diff) | |
| download | dotfiles-aea39b153e72b4df07506b7de42b6a4232d12c61.tar.gz | |
Better tmux
Diffstat (limited to '.tmux.conf')
| -rw-r--r-- | .tmux.conf | 19 |
1 files changed, 9 insertions, 10 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | unbind C-b | ||
| 2 | set -g prefix ` | ||
| 3 | bind ` send-prefix | ||
| 4 | |||
| 1 | set -g default-terminal "screen-256color" | 5 | set -g default-terminal "screen-256color" |
| 2 | set-window-option -g automatic-rename on | 6 | set-window-option -g automatic-rename on |
| 3 | set-window-option -g mode-keys vi | 7 | set-window-option -g mode-keys vi |
| @@ -5,16 +9,6 @@ set-option -g set-titles on | |||
| 5 | set-option -sg escape-time 10 | 9 | set-option -sg escape-time 10 |
| 6 | set-option -g mouse off | 10 | set-option -g mouse off |
| 7 | 11 | ||
| 8 | if-shell "uname | grep -q Linux" { | ||
| 9 | set -g prefix M-x | ||
| 10 | bind M-x send-prefix | ||
| 11 | } | ||
| 12 | |||
| 13 | if-shell "uname | grep -q Darwin" { | ||
| 14 | set -g prefix M-z | ||
| 15 | bind M-z send-prefix | ||
| 16 | } | ||
| 17 | |||
| 18 | set -g base-index 1 | 12 | set -g base-index 1 |
| 19 | set-window-option -g pane-base-index 1 | 13 | set-window-option -g pane-base-index 1 |
| 20 | set -g renumber-windows on | 14 | set -g renumber-windows on |
| @@ -28,3 +22,8 @@ bind-key Down select-pane -D | |||
| 28 | bind-key Left select-pane -L | 22 | bind-key Left select-pane -L |
| 29 | bind-key Right select-pane -R | 23 | bind-key Right select-pane -R |
| 30 | 24 | ||
| 25 | bind-key -r S-Up resize-pane -U 5 | ||
| 26 | bind-key -r S-Down resize-pane -D 5 | ||
| 27 | bind-key -r S-Left resize-pane -L 5 | ||
| 28 | bind-key -r S-Right resize-pane -R 5 | ||
| 29 | |||
