From 715567d93ba33e980d06552afbc2f26ab80887f5 Mon Sep 17 00:00:00 2001 From: Trevor Merritt Date: Tue, 27 Dec 2022 11:59:43 -0500 Subject: [PATCH] updates copy from tmux --- configs/tmux/tmux.conf | 5 +++++ configs/zsh/configs/prompt.zsh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/tmux/tmux.conf b/configs/tmux/tmux.conf index 287f62a..5fd017f 100644 --- a/configs/tmux/tmux.conf +++ b/configs/tmux/tmux.conf @@ -26,3 +26,8 @@ bind-key C-s send-prefix -2 # enable the mouse. setw -g mouse on +bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" + +bind C-v run "tmux set-buffer "$(xclip -o -sel clipboard)"; tmux paste-buffer" + + diff --git a/configs/zsh/configs/prompt.zsh b/configs/zsh/configs/prompt.zsh index 91b3db5..6b779df 100644 --- a/configs/zsh/configs/prompt.zsh +++ b/configs/zsh/configs/prompt.zsh @@ -11,4 +11,4 @@ setopt promptsubst # Allow exported PS1 variable to override default prompt. if ! env | grep -q '^PS1='; then PS1='${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m:"}%{$fg_bold[blue]%}%c%{$reset_color%}$(git_prompt_info) %# ' -fi \ No newline at end of file +fi