From 4d817a4e565aa913aa0ebbe8dc597e5521c9b246 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 19 May 2018 23:08:05 -0400 Subject: add some keybindings to let tmux interact with the system clipboard --- tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index b8bb589..a9ae155 100644 --- a/tmux.conf +++ b/tmux.conf @@ -43,6 +43,10 @@ bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind -T copy-mode-vi ) send-keys -X start-of-line bind -T copy-mode-vi _ send-keys -X back-to-indentation +bind -T copy-mode-vi ^C run "tmux send-keys -X copy-selection-and-cancel; tmux-clipboard copy" +bind ^C run "tmux-clipboard copy" +bind ^V run "tmux-clipboard paste" + unbind ^B # set up default sessions -- cgit v1.2.3-54-g00ecf