tmux: use ctl-x and start numbering at 1
This commit is contained in:
parent
28ce478821
commit
d3acc704fd
16
.tmux.conf
16
.tmux.conf
@ -8,6 +8,14 @@
|
|||||||
# appropriate tmux key bindings. Note that for many key bindings there is no
|
# appropriate tmux key bindings. Note that for many key bindings there is no
|
||||||
# tmux analogue.
|
# 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
|
# split windows like vim
|
||||||
# vim's definition of a horizontal/vertical split is reversed from tmux's
|
# vim's definition of a horizontal/vertical split is reversed from tmux's
|
||||||
bind s split-window -v
|
bind s split-window -v
|
||||||
@ -111,3 +119,11 @@ set -g focus-events on
|
|||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
bind r source-file ~/.tmux.conf
|
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…
Reference in New Issue
Block a user