This repository has been archived by the owner on Dec 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
107 lines (84 loc) · 2.67 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Use control + space as the prefix
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# General behavior
set -g renumber-windows on
set -g status-position top
set-window-option -g allow-rename off
# History
set -g history-limit 10000
bind -n C-k send-keys -R \; clear-history
# Sessions
bin '@' choose-session
bin '+' command-prompt -p "Session name:" "new-session -s '%%'"
# Splits
unbind '"'
unbind '%'
bind - split-window -v -c "#{pane_current_path}"
bind '|' split-window -h -c "#{pane_current_path}"
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# Vi-ish pane navigation
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
# Familiar pane resizing (allows repeating)
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Quick reload of source
bind C-r source-file ~/.tmux.conf \; display "Configuration reloaded."
# UTF8
set-window-option -g utf8 on
# Move quickly!
set -s escape-time 0
set -sg repeat-time 300
# Colors
set -g default-terminal "screen-256color"
#### COLOUR (Solarized light)
# default statusbar colors
set-option -g status-bg white #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg white #base2
set-option -g pane-active-border-fg brightcyan #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=white,bg=red #base2, red
# clock
set-window-option -g clock-mode-colour colour64 #green
# Toggle Mouse Mode
bind M \
set -g mode-mouse on\;\
set -g mouse-resize-pane on\;\
set -g mouse-select-pane on\;\
set -g mouse-select-window on\;\
display "Mouse Mode: on"
bind m \
set -g mode-mouse off\;\
set -g mouse-resize-pane off\;\
set -g mouse-select-pane off\;\
set -g mouse-select-window off\;\
display "Mouse Mode: off"
# OSX Hacks
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'