summary refs log tree commit diff
path: root/configs/rcs/tmux.conf
blob: 06f1524f0d816af3b88cd3ded8ceec0d5e55f850 (plain) (blame)
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
# If running on macOS and the helper is available, reattach to user namespace
# to have access to services like pasteboard, Keychain, etc.
#
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/master/README.md
if-shell 'test $(uname -s) = "Darwin" && \
          hash reattach-to-user-namespace 2> /dev/null' \
  'set-option -g default-command "reattach-to-user-namespace -l ${SHELL}"; \
   bind-key -T copy-mode C-q send -X copy-pipe "reattach-to-user-namespace pbcopy"'


set-option -g status-keys vi
set-window-option -g mode-keys vi

### Modern Terminal
set-option -g default-terminal "xterm-256color"
set-option -g xterm-keys on
# Tmux 2.1 unified mouse support into a single option: 'mouse on'.
# Enable it but fallback on error if we're running an older Tmux.
if-shell '! tmux set-option -g mouse on' \
  'set-option -g mode-mouse on; \
   set-option -g mouse-resize-pane on; \
   set-option -g mouse-select-pane on; \
   set-option -g mouse-select-window on'

### Look & Feel
set-option -g base-index 1
set-option -g renumber-windows on
set-option -g set-titles on
set-option -g set-titles-string '@#h'
set-option -g display-time 2000

# command/message line colors
set-option -g message-fg white
set-option -g message-bg black
set-option -g message-attr bright

# default statusbar colors
set-option -g status-fg colour245
set-option -g status-bg black
set-option -g status-attr default

# default window title colors
set-window-option -g window-status-fg colour33
set-window-option -g window-status-bg default

# active window title colors
set-window-option -g window-status-current-fg default
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr reverse

# status bar
set-option -g status-left-length 16
set-option -g status-left "%m/%d %H:%M"
set-option -g status-right "#{host_short}"