-
Notifications
You must be signed in to change notification settings - Fork 5
/
.tmux.conf
73 lines (55 loc) · 1.69 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
# turn off escape delay
set-option -sg escape-time 0
set-option -g prefix C-a
set-option -g status-keys vi
set-window-option -g mode-keys vi # vi key
set-window-option -g xterm-keys on
unbind C-b
bind C-a send-prefix
set-option -g history-limit 100000
set-window-option -g aggressive-resize on
# 0 is too far from ` ;)
set -g base-index 1
set -g pane-base-index 1
set-option -g default-terminal "screen-256color"
set-option -ag terminal-overrides ",alacritty:RGB"
# Automatically set window title
set-window-option -g automatic-rename on
# clock
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=cyan]#h'
set -g status-justify centre
set-window-option -g window-status-current-style bg=green
# Key Bindings
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind-key s split-window -v
bind-key v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# swap panes sorta like vim
bind-key H swap-pane -U
bind-key L swap-pane -D
# resize panes like vim
bind-key > resize-pane -L 5
bind-key < resize-pane -R 5
bind-key + resize-pane -D 5
bind-key - resize-pane -U 5
# swap : / ; like vim
bind-key \; command-prompt
bind-key : last-pane
# bind layouts
bind-key S source-file ~/.tmux/python_50_4L
bind-key D source-file ~/.tmux/python_50_50_25
# Act like Vim
bind-key -T copy-mode v send -X begin-selection
bind-key -T copy-mode y send -X copy-selection
# local config
source-file ~/.tmux/tmux.conf.local