-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
79 lines (62 loc) · 2.34 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
76
77
78
79
# ------------------------------------------------------------------------------
# Basic options
# ------------------------------------------------------------------------------
# Color fixes for using nvim with alacritty + tmux
set -ag terminal-overrides ",xterm-256color:RGB"
# Bind key for horizontal split with the same working directory
bind-key % split-window -h -c "#{pane_current_path}"
# Bind key for vertical split with the same working directory
bind-key '"' split-window -v -c "#{pane_current_path}"
# ------------------------------------------------------------------------------
# Key bindings
# ------------------------------------------------------------------------------
set-window-option -g mode-keys vi
# Action/prefix/leader key
unbind C-b # disable the original "prefix" key
set-option -g prefix C-Space
# Utilities
bind r source-file ~/.tmux.conf \; display "Reloaded!" # reload settings
bind o run-shell "open #{pane_current_path}" # open current directory
bind e kill-pane -a # kill everything but the current pane
# Visual mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X select-line
# Splits
bind v split-window -h
bind s split-window -v
# Pane switching
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Pane resizing
bind -r C-h resize-pane -L 5
bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5
# Pane swapping
bind-key H swap-pane -t "{left-of}"
bind-key J swap-pane -t "{down-of}"
bind-key K swap-pane -t "{up-of}"
bind-key L swap-pane -t "{right-of}"
# ------------------------------------------------------------------------------
# Plugins
# ------------------------------------------------------------------------------
# Plugin manager
set -g @plugin 'tmux-plugins/tpm'
# Sensible tmux settings
set -g @plugin 'tmux-plugins/tmux-sensible'
# Statusline + theme
set -g @plugin '2KAbhishek/tmux2k'
set -g @tmux2k-theme 'duo'
set -g @tmux2k-duo-fg "#688686"
set -g @tmux2k-duo-bg "#1c1c1c"
set -g @tmux2k-icons-only false
set -g @tmux2k-right-plugins "bandwidth network time"
set -g @tmux2k-military-time true
# Initialize tmux plugin manager
# NOTE: keep this line near the very bottom of tmux.conf
run '~/.tmux/plugins/tpm/tpm'
# Theme overrides
set -g pane-border-style 'fg=#424242'
set -g pane-active-border-style 'fg=#ffcc00'