-
Notifications
You must be signed in to change notification settings - Fork 3
/
tmux.conf
executable file
·37 lines (31 loc) · 1.09 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
# set ctrl+a to be prefix
unbind C-b
set -g prefix C-a
# ctr-a+a does ctrl-a
bind a send-prefix
# For color and italics, if not installed see: https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/
set -g default-terminal "xterm-256color-italic"
#set -g default-terminal "xterm-256color"
# vi-like pane movements
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
set-window-option -g mode-keys vi
# bind copy and paste to be more vi-like (into system copy buffer)
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# allow for faster key repetition
set -s escape-time 0
# status bar
set-option -g status-position top
set -g status-justify "left"
set -g status "on"
set -g status-left-length "100"
set -g status-style bg=default,dim
set -g status-right-length "100"
setw -g window-status-separator ""
set -g status-left ""
set -g status-right "#[dim] %H:%M "
setw -g window-status-format " #I #W "
setw -g window-status-current-format " #[nodim]#I #W#[dim] "