-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtmux.conf
More file actions
91 lines (67 loc) · 2.2 KB
/
tmux.conf
File metadata and controls
91 lines (67 loc) · 2.2 KB
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
85
86
87
88
89
90
91
set -g prefix C-Space
# Free the original Ctrl-b prefix keybinding
unbind C-b
# Setting the delay between prefix and command
set -s escape-time 1
# Ensure that we can send Ctrl-Space to other apps
bind C-Space send-prefix
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# better split pane bindings
bind - split-window -v
bind | split-window -h
# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# even better resizing
set -g mouse on
# Quick window selection
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# set the status line's color
set -g status-fg white
set -g status-bg "#000000"
# set the color of the window list
setw -g window-status-fg "#005fff"
setw -g window-status-bg "#000000"
# set color of the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg "#5f00d7"
# pane colors
set -g pane-border-fg default
set -g pane-border-bg default
set -g pane-active-border-fg white
set -g pane-active-border-bg black
# Command / message line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
set -g default-terminal "screen-256color"
# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=#ffffff bg=#303030]Session: #S #[fg=yellow]#I #[fg=cyan]#P #[fg=#303030 bg=#000000] "
set -g status-right "#[fg=#5f00ff bg=#000000]#[fg=#000000 bg=#5f00ff] %d %b %R"
set -g status-interval 60
# Copy-paste integration
# broken on mac
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# enable vi keys in copy mode
setw -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
set-option -g allow-rename off
set tmate-authorized-keys "~/.ssh/authorized_keys"