From 9d1b8ae533f982f149e8b7e4aff40603c3799f0c Mon Sep 17 00:00:00 2001 From: dadada Date: Sat, 30 Jan 2021 23:48:48 +0100 Subject: [PATCH] Enable easier text selection in tmux --- modules/home/tmux.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/home/tmux.nix b/modules/home/tmux.nix index 46dfd73..aa3e4cc 100644 --- a/modules/home/tmux.nix +++ b/modules/home/tmux.nix @@ -12,6 +12,10 @@ in enable = true; terminal = "xterm-256color"; extraConfig = '' + set -g mouse on + set -g set-clipboard on + bind-key -Tcopy-mode v send -X begin-selection + bind-key -Tcopy-mode y send -X copy-selection set -g status on set-option -g set-titles on set-option -g automatic-rename on