Browse Source

tmux: use ctl-x and start numbering at 1

master
Mathieu Maret 1 year ago
parent
commit
088107552b
  1. 16
      .tmux.conf

16
.tmux.conf

@ -8,6 +8,14 @@
# appropriate tmux key bindings. Note that for many key bindings there is no
# tmux analogue.
# prefix is CTRL-B and CTRL-X
set -g prefix C-b
set -g prefix2 C-x
# enable CTRL-B and CTRL-X under other programs (like vim) - you'll have to press twice le combination to have the old one
bind C-b send-prefix
bind C-x send-prefix
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
@ -111,3 +119,11 @@ set -g focus-events on
bind c new-window -c "#{pane_current_path}"
bind r source-file ~/.tmux.conf
# number windows starting from 1 - handy for direct access
set -g base-index 1
# Configure tmux buffer to clipbard
#setw -g mode-keys vi
#bind-key -T copy-mode-vi v send-keys -X begin-selection
#bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'
Loading…
Cancel
Save