-
Notifications
You must be signed in to change notification settings - Fork 86
/
.tmux.conf
104 lines (76 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 50000
# use vim key bindings
setw -g mode-keys vi
# enable mouse (for resizing panes)
setw -g mouse on
# decrease command delay (increases vim responsiveness)
set -sg escape-time 1
# enable utf8 characters
setw -q -g utf8 on
# increase repeat time for repeatable commands
set -g repeat-time 1000
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
# highlight window when it has new activity
setw -g monitor-activity on
set -g visual-activity on
# re-number and re-name windows dynamically
setw -g automatic-rename on
set -g renumber-windows on
###########################
# Key Bindings
###########################
# tmux prefix
unbind C-b
set -g prefix C-j
# paste
unbind C-p
bind C-p paste-buffer
# create new windows in same directory
unbind c
bind c new-window -c "#{pane_current_path}"
# create new splits in same directory
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
# quickly switch panes
unbind ^J
bind ^J select-pane -t :.+
# start with blank name when renaming windows
unbind ,
bind-key , command-prompt -p (rename-window) "rename-window '%%'"
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
###########################
# Status Bar
###########################
# set refresh interval for status bar
set -g status-interval 30
# center the status bar
set -g status-justify left
# show session, window, pane in left status bar
set -g status-left-length 40
set -g status-left '#I:#P #[default]'
# show hostname, date, time, and battery in right status bar
set-option -g status-right '%m/%d/%y %I:%M'
###########################
# Colors
###########################
# color status bar
set -g status-bg colour235
set -g status-fg white
# highlight current window
set-window-option -g window-status-current-style "bg=colour2, fg=black"
# set color of active pane
set-window-option -g pane-border-style "bg=black, fg=colour235"
set-window-option -g pane-active-border-style "bg=black, fg=green"