69 lines
1.6 KiB
Bash
69 lines
1.6 KiB
Bash
#
|
|
# Ctrl-a is the prefix.
|
|
#
|
|
unbind C-b
|
|
set-option -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
# Start windows from #1 (default #0)
|
|
set -g base-index 1
|
|
|
|
# Status bar is on top.
|
|
set -g status-position top
|
|
#set -g status-utf8 on
|
|
|
|
# Keep this much of history per window.
|
|
set -g history-limit 100000
|
|
|
|
# 256color mode.
|
|
#set -g default-terminal "tmux-256color"
|
|
set -g default-terminal "xterm-256color"
|
|
# setw -g xterm-keys on
|
|
|
|
# VI mode
|
|
set -g status-keys vi
|
|
setw -g mode-keys vi
|
|
# Setup 'v' to begin selection as in Vim
|
|
#bind-key -t vi-copy v begin-selection
|
|
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
|
|
# Update default binding of 'Enter' to also use copy-pipe
|
|
#unbind -t vi-copy Enter
|
|
#bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
|
|
|
|
#bind p paste-buffer
|
|
|
|
bind -n C-1 select-pane -t 1
|
|
bind -n C-2 select-pane -t 2
|
|
bind -n C-3 select-pane -t 3
|
|
bind -n C-4 select-pane -t 4
|
|
bind -n C-5 select-pane -t 5
|
|
bind -n C-6 select-pane -t 6
|
|
bind -n C-7 select-pane -t 7
|
|
bind -n C-8 select-pane -t 8
|
|
bind -n C-9 select-pane -t 9
|
|
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
bind -r M-h resize-pane -L
|
|
bind -r M-j resize-pane -D
|
|
bind -r M-k resize-pane -U
|
|
bind -r M-l resize-pane -R
|
|
|
|
# Mouse on/off
|
|
# bind m \
|
|
# set -g mode-mouse on \;\
|
|
# set -g mouse-resize=pane on \;\
|
|
# set -g mouse-select-pane on \;\
|
|
# set -g mouse-select-window on \;\
|
|
# display 'Mouse: ON'
|
|
# bind M \
|
|
# set -g mode-mouse off \;\
|
|
# set -g mouse-resize=pane off \;\
|
|
# set -g mouse-select-pane off \;\
|
|
# set -g mouse-select-window off \;\
|
|
# display 'Mouse: OFF'
|
|
|