31 lines
779 B
Bash
31 lines
779 B
Bash
#set 256 colormode
|
|
set -g default-terminal "screen-256color"
|
|
#remap prefix to ctrl + a
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
#C-a C-a go to last active window
|
|
bind-key C-a last-window
|
|
#send prefix in multiple sessions
|
|
bind-key a send-prefix
|
|
#start window numbering at 1
|
|
set -g base-index 1
|
|
#start pane numbering at 1
|
|
setw -g pane-base-index 1
|
|
#reload config
|
|
bind r source-file ~/.tmux.conf \; display "config file loaded."
|
|
#Faster command sequence
|
|
set -s escape-time 0
|
|
set -g bell-action any # listen for activity on all windows
|
|
set -g bell-on-alert on
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
unbind x
|
|
bind x kill-pane
|
|
bind X kill-session
|
|
|
|
#pane resizing vim style
|
|
bind-key -r K resize-pane -U
|
|
bind-key -r J resize-pane -D
|
|
bind-key -r H resize-pane -L
|
|
bind-key -r L resize-pane -R
|