summaryrefslogtreecommitdiff
path: root/.config/tmux
diff options
context:
space:
mode:
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