ini .tmux.conf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini .tmux.conf相关的知识,希望对你有一定的参考价值。
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix 'C-\'
bind-key 'C-\' send-prefix
# split panes using = and -
bind i split-window -h
bind s split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind h resize-pane -L 5
bind j resize-pane -D 5
bind k resize-pane -U 5
bind l resize-pane -R 5
unbind Left
unbind Down
unbind Up
unbind Right
unbind M-Left
unbind M-Right
unbind S-Left
unbind S-Right
bind -n M-Left previous-window
bind -n M-Right next-window
# Enable mouse control (clickable windows, panes, resizable panes)
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# set -g mouse-select-window on
# for tmux 2.3
setw -g mouse on
setw -g monitor-activity on
set -g default-terminal "screen-256color"
# automatically set window title
setw -g automatic-rename on
set -g set-titles on
# don't rename windows automatically
# set-option -g allow-rename off
# # enable activity alerts
# set -g visual-activity on
#
# Center the window list
set -g status-justify centre
set -g status-keys vi
setw -g mode-keys vi
bind -n M-i setw synchronize-panes
bind r source-file ~/.tmux.conf
source-file "${HOME}/.tmux-themepack/powerline/block/orange.tmuxtheme"
set -sg escape-time 0
bind-key -T edit-mode-vi Up send-keys -X history-up
bind-key -T edit-mode-vi Down send-keys -X history-down
unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
# unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
# unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
# unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -selection clipboard"
以上是关于ini .tmux.conf的主要内容,如果未能解决你的问题,请参考以下文章