mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
saner copy mode keybindings
This commit is contained in:
@@ -17,6 +17,12 @@ unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
# Copy-paste integration
|
||||
setw -g mode-keys vi
|
||||
bind -t vi-copy 'v' begin-selection
|
||||
bind -t vi-copy 'y' copy-selection
|
||||
bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard"
|
||||
|
||||
# splitting panes
|
||||
bind v split-window -h
|
||||
bind s split-window -v
|
||||
|
||||
Reference in New Issue
Block a user