summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-05-03 21:52:01 +0100
committerMatthew Lemon <y@yulqen.org>2023-05-03 21:52:01 +0100
commite2bd9bad0287ac70f398cf7418920c9851e0496a (patch)
treeb4ce20cc93d027ee1883bf5ad56578514a1349b5
parent7f2d42218e5f736730226e6515a01efcb706b6cd (diff)
Adds a new tmux shortcut to allow easy pasting from system clipboard
Diffstat (limited to '')
-rw-r--r--tmux.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.conf b/tmux.conf
index a7d6c20..e3561e8 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -8,6 +8,9 @@ set-option -g focus-events on
# set shell
#set -g default-shell '/bin/ksh'
+# paste with Ctrl Y
+bind-key -n C-y run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
+
# command sequence for nested tmux sessions
bind-key a send-prefix