-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
90 lines (69 loc) · 2.06 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
##################
# Global options #
##################
# Better splitting
bind | split-window -h -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
# Pane resizing
bind j resize-pane -D 5
bind k resize-pane -U 5
bind l resize-pane -L 5
bind h resize-pane -R 5
# Auto rename
set-window-option -g automatic-rename off
set -g default-terminal "xterm-256color"
# Use zsh
set-option -g default-shell /usr/bin/zsh
# Default hotkey bindings
set-window-option -g xterm-keys on
# History
set -g history-limit 10000
# UTF8
#set-window-option -g utf8 on
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
# Mouse settings
set -g mouse on
##############
# Status bar #
##############
# Display
set -g status-position bottom
set -g status-justify left
# Left display
set -g status-left ''
# Right display
set -g status-right '%m/%d/%y | %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
# Colors
set -g status-bg colour235
set -g status-fg white
set -g status-interval 1
# Highlighting the active window in status bar
setw -g window-status-current-style bg=colour76,fg=colour235,bold
set-option -g window-status-activity-style fg=red,bold
# TODO Get activity color working
set-window-option -g window-status-bell-style fg=white,bg=colour76
# Notify if other window has activity
setw -g monitor-activity on
set -g visual-activity on
# Copy selection color
set-window-option -g mode-style fg=white,bg=colour76
# Clock
setw -g clock-mode-style 24
# setw -g clock-mode-colour green
# Hostname and IP address
#set -g status-right '#[fg=white]#(hostname)@#(host `hostname` | cut -d " " -f 4)'
#set -g status-right '#[fg=white]#(host `hostname` | cut -d " " -f 4)'
#########
# Plugins
#########
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'