-
Notifications
You must be signed in to change notification settings - Fork 8
/
tmux.conf
86 lines (64 loc) · 2.41 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
85
86
# Use C-a for command prefix
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# Switch to another session if the current session is destroyed
set-option -g detach-on-destroy off
# Don't use a login shell (don't re-source ~/.profile)
set-option -g default-command "$SHELL"
# Start window and pane indexing at 1
set -g base-index 1
setw -g pane-base-index 1
# Always use size of smallest connected client
setw -g window-size smallest
set -g @open-S 'https://www.duckduckgo.com/?q='
set-option -g @pane_resize "2"
# Use C-F3 to toggle status bar
bind-key -n C-F3 set-option -g status
# Use = to make roughly equal size splits
set-window-option -g main-pane-height 40
bind A select-layout main-horizontal
bind = select-layout even-horizontal
bind + select-layout even-vertical
# Jump to the last window with z
bind z last-window
# Join a pane to this window with @
bind @ command-prompt -p "join pane from:" "join-pane -s '%%'"
# Kill the current session
bind X confirm-before -p "Kill #S (y/n)?" kill-session
# Use vi-like shortcuts
setw -g mode-keys vi
set -g mouse on
# Add binding for tmuxstart sessions
bind S command-prompt -p "Make/attach session" "new-window 'tmuxstart \'%%\''"
### SOLARIZED COLORS ###
# Set statusbar colors
set-option -g status-bg green
set-option -g status-fg white
set-window-option -g window-status-current-style fg=white
set-window-option -g window-status-current-style bright
set -g status-left '(#S) #(whoami)@#H#[default]'
set -g status-left-length 30
set -g status-left '#[bold] ჻ #S ⁝#[nobold]'
set-window-option -g window-status-format ' #I #W '
set-window-option -g window-status-current-format ' #[bold]#I #W#[nobold] '
set -g status-right '%Y-%m-%d #[bold]⁝#[nobold] %H:%M '
# Set pane border
set-option -g pane-border-style fg=blue
set-option -g pane-active-border-style fg=green
# Set command line text colors
set-option -g message-style bg=white
set-option -g message-style fg=brightred
###
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'jaclu/tmux-menus'
set -g @plugin 'tmux-plugins/tmux-cowboy'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Enable 24-bit color
set-option -ga terminal-overrides ",xterm-256color:Tc"