45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# use vim copy/paste keybindings
|
|
setw -g mode-keys vi
|
|
|
|
set -g default-terminal "tmux-256color"
|
|
set -ga terminal-overrides ",tmux-256color:Tc"
|
|
|
|
set -g default-shell /bin/bash
|
|
|
|
# see https://github.com/neovim/neovim/issues/2035
|
|
set -sg escape-time 10 # in milliseconds
|
|
|
|
# split panes using | and -
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
|
|
# vim style pane switching
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# status bar design
|
|
set -g status-position top
|
|
set -g status-left-length 60
|
|
set -g status-style bg=colour239
|
|
set -g status-right ' #[fg=colour233,bg=colour102,bold] #(hostname) #[fg=colour233,bg=colour102,bold] %d/%m #[fg=colour233,bg=colour102,bold] %H:%M:%S '
|
|
|
|
# current session name
|
|
set-window-option -g status-left '#[fg=colour0,bg=colour102] #S '
|
|
|
|
# current window
|
|
set -g window-status-current-style fg=colour0,bg=colour102
|
|
set -g window-status-current-format ' #I#[fg=colour0] #[fg=colour0]#W '
|
|
|
|
# background windows
|
|
set -g window-status-style fg=colour0,bg=colour240
|
|
set -g window-status-format ' #I#[fg=colour0] #[fg=colour0]#W '
|
|
|
|
# scrollback history
|
|
set -g history-limit 10000
|
|
|
|
set -g mouse on
|