diff options
Diffstat (limited to 'content/notes/tmux-config.md')
| -rw-r--r-- | content/notes/tmux-config.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/content/notes/tmux-config.md b/content/notes/tmux-config.md new file mode 100644 index 0000000..64bf4b2 --- /dev/null +++ b/content/notes/tmux-config.md | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | --- | ||
| 2 | title: Tmux config for my machines | ||
| 3 | url: tmux-config.html | ||
| 4 | date: 2023-05-25 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | tags: [tmux] | ||
| 8 | --- | ||
| 9 | |||
| 10 | ```conf | ||
| 11 | # Remap prefix from 'C-b' to 'M-a'. | ||
| 12 | unbind C-b | ||
| 13 | set-option -g prefix M-a | ||
| 14 | bind-key M-a send-prefix | ||
| 15 | |||
| 16 | # Split panes using | and -. | ||
| 17 | bind | split-window -h | ||
| 18 | bind - split-window -v | ||
| 19 | unbind '"' | ||
| 20 | unbind % | ||
| 21 | |||
| 22 | # Start counting windows with 1. | ||
| 23 | set-option -g allow-rename on | ||
| 24 | set -g base-index 1 | ||
| 25 | setw -g pane-base-index 1 | ||
| 26 | |||
| 27 | # Statusbar: purple bg and white fg. | ||
| 28 | set -g status-bg '#480b8e' | ||
| 29 | set -g status-fg '#ffffff' | ||
| 30 | |||
| 31 | # Active window: black bg and white fg. | ||
| 32 | set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]" | ||
| 33 | |||
| 34 | # Disable mouse mode (tmux 2.1 and above). | ||
| 35 | set -g mouse off | ||
| 36 | ``` | ||
