-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
84 lines (65 loc) · 2.05 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
80
81
82
83
84
set -g prefix C-a
unbind %
bind | split-window -h
bind - split-window -v
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# Vi copypaste
setw -g mode-keys vi
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Workaround to allow acessing OSX pasteboard
#set-option -g default-command "reattach-to-user-namespace -l zsh"
# Appropriate terminal colors
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Start tabs at index 1
set -g base-index 1
# Make pane numbering consistent with windows
setw -g pane-base-index 1
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# screen like window toggling
bind Tab last-window
bind Escape copy-mode
# colors
set -g default-terminal "screen-256color"
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left "#[fg=green]#h"
# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
setw -g window-status-current-format "|#I:#W|"
set-window-option -g automatic-rename off
# listen to alerts from all windows
set -g bell-action any
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# use the vim resize keys.
# the number at the end is how much the pane will be resized,
# and 1 is fairly small -- you might want to tweak this.
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
set -g mouse on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'