-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
105 lines (84 loc) · 2.73 KB
/
tmux.conf
File metadata and controls
105 lines (84 loc) · 2.73 KB
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
# shell-nanigans
# ==============
# reload the config at will
bind r source-file ~/.tmux.conf
set -g default-command "$SHELL --login"
# italics
# =======
set -g default-terminal 'xterm-256color-italic'
set -ag terminal-overrides ",*256col*:RGB"
# panes
# =====
# set inactive/active window styles
set -g pane-border-status "top"
set -g pane-border-format "〔 #{pane_index} ⬥ #{b:pane_current_path} ♨︎ #{b:pane_current_command} 〕"
set -g pane-border-lines "heavy"
# switch panes using Alt-arrow without prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
bind -n M-Left resize-pane -L 2
bind -n M-Right resize-pane -R 2
bind -n M-Up resize-pane -U 2
bind -n M-Down resize-pane -D 2
# split panes using | and -
bind \\ split-window -h
bind - split-window -v
unbind '"'
unbind %
# resize panes
bind z resize-pane -Z
# pop up
# ======
bind * display-popup -E
# status bar
# ==========
set -g status-left "#[fg=red] #(whoami) in [#S] "
set -g status-left-length 25
# windows
# =======
# set name to path
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# start window numbering at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# [plugin] tmux-sensible
# ======================
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys vi
set -g mode-keys vi
# focus events enabled for terminals that support them
set -g focus-events on
# [plugin] tmux-themepack
# =======================
set -g @themepack 'powerline/default/gray'
# Themepack format options
set -goq @themepack-status-left-area-left-format "#S"
set -goq @themepack-status-left-area-middle-format "#(whoami)"
set -goq @themepack-status-left-area-right-format "#I:#P"
set -goq @themepack-status-right-area-left-format "%H:%M:%S"
set -goq @themepack-status-right-area-middle-format "%d-%b-%y"
set -goq @themepack-status-right-area-right-format "#H"
set -goq @themepack-window-status-current-format "#I:#W#F"
set -goq @themepack-window-status-format "#I:#W#F"
set -goq @themepack-window-status-current-prefix "☯︎ "
set -goq @themepack-window-status-current-suffix " ☯︎"
# plugins
# =======
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
run '~/.tmux/plugins/tpm/tpm'
# Should always be last in the configuration
source-file ~/.config/tmux/sessions.conf