-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
75 lines (57 loc) · 1.71 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -- General settings --
# set Zsh as your default Tmux shell
# set -g default-shell /bin/zsh
# I know c-s is saving... but I kind of like it
unbind C-b
set -g prefix C-s
# Start indexing windows from 1
set -g base-index 1
# renumber windows sequentially after closing any of them
# set -g renumber-windows on
# Window titles
set -g set-titles on
# New window
bind-key C-c new-window
bind-key c new-window
bind-key p previous-window
# Pane switching with Alt+arrow
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use reattach-to-user-namespace to handle clipboard copy
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Swap panes
bind-key -r J swap-pane -D
bind-key -r K swap-pane -U
# Split windows like in my vim setup
bind-key - split-window -v
bind-key _ split-window -v
bind-key | split-window -h
# Resize panes like vim
bind-key -r < resize-pane -L 5
bind-key -r > resize-pane -R 5
bind-key -r + resize-pane -U 10
bind-key -r = resize-pane -D 10
# -- Statusbar settings --
# Activity Monitoring
setw -g monitor-activity on
set -g visual-activity on
# Default statusbar colors
set -g default-terminal 'screen-256color'
set -g status-bg '#232323'
set -g status-fg white
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg "#800000"
set-option -g status-left '#[fg=white]#H:'
# Right
load='#[fg=yellow]#(uptime)#[default] '
#enable mouse support
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on