-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_tmux.conf
72 lines (53 loc) · 2.28 KB
/
dot_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
# remap prefix to Control + x
set -g prefix C-x
unbind C-b
bind C-x send-prefix
# force a reload of the config file
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# New window with current path
bind c new-window -c "#{pane_current_path}"
# Split panes with current path
bind | split-window -h -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}"
# Scroll history
set-option -g history-limit 20000
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
# Longer tmux messages
set-option -g display-time 3000
# use vi style keybindings
setw -g mode-keys vi
# Mouse support
set -g mouse on
# XTerm integration -----------------------------------------------------------
# iTerm color profile
set -g default-terminal "xterm-256color"
# Enable scroll support
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# xterm-style function key sequences
# setw -g xterm-keys on
# Status bar ------------------------------------------------------------------
set-option -g set-titles on
set -g status-interval 1
set -g status-position bottom
set -g status-bg colour237
set -g status-fg colour137
set -g status-left '#[fg=colour197]#(~/.shell/tmux/internet_info.sh) '
set -g status-right '#[fg=colour81]#(~/.shell/tmux/now_playing.sh) #(~/.shell/tmux/battery.sh) #[fg=colour255,bg=colour241,bold] %a %d-%m #[fg=colour255,bg=colour241,bold] %H:%M:%S #[fg=colour165]#[bg=default] #U@#H'
set -g status-right-length 100
set -g status-left-length 70
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour170]#F '
set-option -g set-titles-string '#S | / #W'
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour170]#F '
# Plugins ---------------------------------------------------------------------
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'soyuka/tmux-current-pane-hostname'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'