-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
89 lines (65 loc) · 2.24 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
87
88
89
# Use screen like prefix key instead of C-b
unbind C-b
set -g prefix C-a
# Ctrl-a a -> send-prefix
bind-key a send-prefix
# Don't rename windows automatically
set-option -g allow-rename off
# Force ZSH shell
set -g default-shell /usr/bin/zsh
# Set Vi mode
set-window-option -g mode-keys vi
# Longer history
set-option -g history-limit 50000
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# auto window rename
set-window-option -g automatic-rename
# color
set -g default-terminal "tmux-256color"
# C-u to open a urlview window and browse urls from command output
bind-key u capture-pane \; save-buffer $XDG_RUNTIME_DIR/tmux-url-buffer \; new-window -n "urlview" '$SHELL -c "urlview $XDG_RUNTIME_DIR/tmux-url-buffer"'
# Vim-like copy-paste
unbind [
unbind ]
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key N previous-window
# Configuration from: https://mutelight.org/practical-tmux
# C-a C-a for the Last Active Window
bind-key C-a last-window
# Start Window Numbering at 1
set -g base-index 1
# Faster Command Sequences / faster key repetition
set -s escape-time 0
# Aggressive Resize
setw -g aggressive-resize on
# https://github.com/seebi/tmux-colors-solarized
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-style default
set-option -ag status-style bg=colour235 #base02
set-option -ag status-style fg=colour136 #yellow
# default window title colors
set-window-option -g window-status-style dim
set-window-option -ag window-status-style fg=colour244 #base0
set-window-option -ag window-status-style bg=default
# active window title colors
set-window-option -g window-status-current-style bright
set-window-option -ag window-status-current-style fg=colour166 #orange
set-window-option -ag window-status-current-style bg=default
# pane border
set-option -g pane-border-style fg=colour235 #base02
set-option -ag pane-active-border-style fg=colour240 #base01
# message text
set-option -g message-style bg=colour235 #base02
set-option -ag message-style fg=colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -ag display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green