aboutsummaryrefslogtreecommitdiff
path: root/_posts/2023-05-25-tmux-sane-defaults.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-01 22:54:27 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-01 22:54:27 +0100
commit2417a6b7603524dc5cd30d29b153f91024b9443d (patch)
tree9be5ea8e5baba96dd9159217da6badf6157fb595 /_posts/2023-05-25-tmux-sane-defaults.md
parent89ba3497f07a8ea43d209b583f39fcc286acc923 (diff)
downloadmitjafelicijan.com-2417a6b7603524dc5cd30d29b153f91024b9443d.tar.gz
Move to Jekyll
Diffstat (limited to '_posts/2023-05-25-tmux-sane-defaults.md')
-rw-r--r--_posts/2023-05-25-tmux-sane-defaults.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/_posts/2023-05-25-tmux-sane-defaults.md b/_posts/2023-05-25-tmux-sane-defaults.md
new file mode 100644
index 0000000..3d0f304
--- /dev/null
+++ b/_posts/2023-05-25-tmux-sane-defaults.md
@@ -0,0 +1,38 @@
1---
2title: Sane defaults for tmux with more visible statusbar
3permalink: /tmux-sane-defaults.html
4date: 2023-05-25T12:00:00+02:00
5layout: post
6type: note
7draft: false
8tags: [tmux]
9---
10
11```conf
12# Remap prefix from 'C-b' to 'M-a'.
13unbind C-b
14set-option -g prefix M-a
15bind-key M-a send-prefix
16
17# Split panes using | and -.
18bind | split-window -h
19bind - split-window -v
20unbind '"'
21unbind %
22
23# Start counting windows with 1.
24set-option -g allow-rename on
25set -g base-index 1
26setw -g pane-base-index 1
27
28# Statusbar: purple bg and white fg.
29set -g status-bg '#480b8e'
30set -g status-fg '#ffffff'
31
32# Active window: black bg and white fg.
33set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]"
34
35# Disable mouse mode (tmux 2.1 and above).
36set -g mouse off
37```
38