update tmux config
This commit is contained in:
parent
45150ed6c0
commit
e90ccc92ea
1 changed files with 20 additions and 18 deletions
38
.tmux.conf
38
.tmux.conf
|
@ -19,26 +19,28 @@ set -s escape-time 10 # faster command sequences
|
|||
set -sg repeat-time 200 # increase repeat timeout
|
||||
set -s focus-events on
|
||||
|
||||
set -g prefix C-e
|
||||
bind C-a send-prefix -2
|
||||
set -g prefix2 C-a # GNU-Screen compatible prefix
|
||||
bind C-e send-prefix -2
|
||||
|
||||
bind -n End send-key C-e
|
||||
bind -n Home send-key C-a
|
||||
|
||||
unbind C-b
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
|
||||
setw -q -g utf8 on
|
||||
|
||||
set -g history-limit 3000 # boost history
|
||||
set -g history-limit 4000 # boost history
|
||||
|
||||
# edit configuration
|
||||
bind e new-window -n "#{TMUX_CONF_LOCAL}" -e EDITOR="$EDITOR" sh -c 'case "${EDITOR:-vim}" in *vim*) ${EDITOR:-vim} -c ":set syntax=tmux" "$TMUX_CONF_LOCAL";; *) $EDITOR "$TMUX_CONF_LOCAL";; esac && "$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF" \; display "$TMUX_CONF_LOCAL sourced"'
|
||||
# reload configuration
|
||||
bind r run '"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF"' \; display "#{TMUX_CONF} sourced"
|
||||
|
||||
bind r run '"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF"' \; display "#{TMUX_CONF} sourced"
|
||||
|
||||
set -g prefix C-e
|
||||
|
||||
unbind C-b
|
||||
unbind '"'
|
||||
unbind %
|
||||
bind -n End send-key C-e
|
||||
bind -n Home send-key C-a
|
||||
bind C-e send-prefix -2
|
||||
|
||||
# -- display -------------------------------------------------------------------
|
||||
|
||||
|
@ -93,10 +95,10 @@ bind < swap-pane -U # swap current pane with the previous one
|
|||
bind + run "cut -c3- '#{TMUX_CONF}' | sh -s _maximize_pane '#{session_name}' '#D'"
|
||||
|
||||
# pane resizing
|
||||
bind -r ^k resizep -U 8
|
||||
bind -r ^j resizep -D 8
|
||||
bind -r ^h resizep -L 8
|
||||
bind -r ^l resizep -R 8
|
||||
bind -r ^h resize-pane -L 8
|
||||
bind -r ^j resize-pane -D 8
|
||||
bind -r ^k resize-pane -U 8
|
||||
bind -r ^l resize-pane -R 8
|
||||
|
||||
# window navigation
|
||||
unbind n
|
||||
|
@ -139,9 +141,9 @@ if -b '[ -c /dev/clipboard ]' 'bind y run -b "\"\$TMUX_PROGRAM\" \${TMUX_SOCKET:
|
|||
|
||||
# -- buffers -------------------------------------------------------------------
|
||||
|
||||
bind b list-buffers # list paste buffers
|
||||
bind P paste-buffer # paste from the top paste buffer
|
||||
bind p choose-buffer # choose which buffer to paste from
|
||||
bind b list-buffers # list paste buffers
|
||||
bind P paste-buffer -p # paste from the top paste buffer
|
||||
bind p choose-buffer # choose which buffer to paste from
|
||||
|
||||
|
||||
# -- 8< ------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue