summaryrefslogtreecommitdiff
path: root/.config/tmux
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-12-22 22:07:47 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-12-22 22:07:47 +0100
commit92750ff52f6df270b9c8a2d3068c7e0ff3374265 (patch)
treee9f8cce65844b230982d81948547bd0469126a1c /.config/tmux
parentec82e0f8cc3f9b451c1ce63a948034c6bb2b5bd2 (diff)
updates
Diffstat (limited to '.config/tmux')
-rw-r--r--.config/tmux/tmux.conf7
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 6430b97..c0f54a9 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -6,6 +6,7 @@ set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
+
# Allows vim to display colors correctly.
set -g default-terminal 'screen-256color'
set -ga terminal-overrides ',*256col*:Tc'
@@ -54,9 +55,9 @@ bind -n M-l select-pane -R
bind Escape copy-mode
bind p paste-buffer
bind -T copy-mode-vi v send -X begin-selection
-bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
-bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
-bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
+bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
+bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip"
+bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip"
# 0 is too far from ` ;)
set -g base-index 1