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