.tmux.conf revisited.

This commit is contained in:
Vahagn Khachatryan
2016-02-10 12:52:24 -05:00
parent a3579a36a0
commit 1ead0fd7c6

View File

@@ -1,16 +1,33 @@
#
# Ctrl-a is the prefix.
#
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set-option -g history-limit 10000
# 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 "screen-256color"
setw -g xterm-keys on
# VI mode
set -g status-keys vi
setw -g mode-keys vi
set -g status-position top
set -g default-terminal "screen-256color"
set-window-option -g xterm-keys on
set -g mode-mouse off
# 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 h select-pane -L
@@ -18,10 +35,16 @@ bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
#bind -r C-h resize-pane -L
#bind -r C-j resize-pane -D
#bind -r C-k resize-pane -U
#bind -r C-l resize-pane -R
#No mouse
set -g mode-mouse off
set -g mouse-select-pane off
set -g mouse-resize-pane off
set -g mouse-select-window off
bind m \
set -g mode-mouse on \;\
@@ -29,7 +52,8 @@ bind m \
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
bind m \
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 \;\