summaryrefslogblamecommitdiff
path: root/tmux.conf
blob: 6c77707a37c0ccf50e7b80a48abb94837b90bfb2 (plain) (tree)
1
2
3
4
5
6
7






                        





                                         





                                    












                                                       


















                                                






                          
                    
# Prefix
set-option -g prefix C-z
unbind-key C-b
bind C-t send-prefix

set -s escape-time 1

# colors
set -g default-terminal "screen-256color"

# messaging
set -g message-bg colour167
set -g message-fg white

# View
set-option -g status-interval 5
set-option -g status-left-length 16
set-option -g status-right-length 50

setw -g window-status-format " #W "
set-option -g status-bg colour240
set-option -g status-fg white

set -g status-left ''

set-option -g status-right '[%H:%M]'
set-option -g status-right-fg white
set-option -g status-right-bg colour232

setw -g window-status-current-format " #W "
set-window-option -g window-status-current-bg colour250
set-window-option -g window-status-current-fg black

# move pain like Vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind-key c new-window -c "#{pane_current_path}"

# split window
bind _ split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"

# move last window
bind C-z last-window
bind o last-pane

# Option
set-window-option -g mode-keys vi

# resize pain
bind -r H resize-pane -L 2
bind -r L resize-pane -R 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2

bind i display-panes