-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
49 lines (38 loc) · 1.33 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
set -g mouse on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Binds to maintain current dir
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
# Binds for pane navigation
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Rebind previous window (defaults to l)
bind-key b previous-window
# Bind for swap window
bind-key < swap-window -t -1\; select-window -t -1
bind-key > swap-window -t +1\; select-window -t +1
# Colours
set -g default-terminal "screen-256color"
# Status bar
set -g window-status-current-format "[#I:#W]"
set -g window-status-format "[#I:#W]"
set -g status-right '#(myweather.py) - %A %d %B - %I:%M %p'
set -g status-right-length 50
# Styling
set -g status-style 'bg=colour238,fg=colour149'
set -g window-status-current-style 'bg=colour232,fg=colour149'
set -g pane-active-border-style 'fg=colour149'
# Window numbering
set -g base-index 1
set -g renumber-windows on
# Terminal overrides
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# Load machine specific config if it exists
source -q ~/.thistmux.conf