-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
64 lines (54 loc) · 1.97 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
# To reload: prefix :source-file ~/.tmux.conf
# C-b -> C-a
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# VI mode (buffer navigation and searching)
set-window-option -g mode-keys vi
# VI mode (begin selection/copy selection)
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# Mouse on (hold shift/opt key down to copy text using mouse)
# For older versions of tmux
# set -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# set -g mouse-resize-pane on
# For newer versions of tmux
set -g mouse on
# Pane
set -g pane-border-style fg=white
set -g pane-active-border-style fg=colour250 # gray
# Tabs
#setw -g window-status-format "#[fg=white]#[bg=blue] #I #[bg=blue]#[fg=white] #W "
#setw -g window-status-current-format "#[bg=brightmagenta]#[fg=white] *#I #[fg=white,bold]#[bg=cyan] [#W] "
#setw -g window-status-current-format "#[bg=white]#[fg=black] *#I #[fg=black,bold]#[bg=white] [#W] "
setw -g window-status-current-format "#[bg=white]#[fg=black]#I:#[fg=black,bold]#[bg=white]#W*"
#setw -g window-status-content-attr bold,blink,reverse
# Status bar
#
# Status Formatting:
# #(cmd) - display command output
# #h - short hostname
# #S - session name
#
# Date Formatting:
# %H - hour (01..24)
# %I - hour (01..12)
# %M - minute (01..59)
# %p - locale's equivalent of either AM or PM; blank if not known
# %P - like %p, but lower case
set -g status-style fg=white,bg=black
set -g status-justify centre
set -g status-left "#(TZ="America/Los_Angeles" date '+%%I:%%M%%P') #S #h"
set -g status-left-length 40
set -g status-right "#(TZ="America/Los_Angeles" date '+%%I:%%M%%P') #S #h"
set -g status-right-length 40
# Some remote machines rename the window
set-option -g allow-rename off
# Set working dirs when creating panes/windows
# bind-key c new-window -c ~/
# Weird tmux/vim and escape key issue
set -sg escape-time 0
# Ensure zsh shell is used by default
set-option -g default-shell /bin/zsh