summaryrefslogtreecommitdiffstats
path: root/tmux.conf
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-05-19 23:08:05 -0400
committerJesse Luehrs <doy@tozt.net>2018-05-19 23:27:42 -0400
commit4d817a4e565aa913aa0ebbe8dc597e5521c9b246 (patch)
tree55c65b6bccdfe89e757ecf54ff27084c8af838f6 /tmux.conf
parent18132d7281dddd98f8dcc298ec742a02ed278d86 (diff)
downloadconf-4d817a4e565aa913aa0ebbe8dc597e5521c9b246.tar.gz
conf-4d817a4e565aa913aa0ebbe8dc597e5521c9b246.zip
add some keybindings to let tmux interact with the system clipboard
Diffstat (limited to 'tmux.conf')
-rw-r--r--tmux.conf4
1 files changed, 4 insertions, 0 deletions
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