做字幕的网站,广州网站建设服务商,金泉网 网站建设,东台网页定制通过ssh同步tmux剪贴板内容
通过ssh连接远程服务器时#xff0c;可以通过xclip同步tmux剪贴板内容。这需要在服务器上安装xclip#xff0c;且需要在ssh远程连接时开启X11。
此处附tmux剪贴板调用xclip的配置#xff1a;
# Copy the current buffer to the system clipboa…通过ssh同步tmux剪贴板内容
通过ssh连接远程服务器时可以通过xclip同步tmux剪贴板内容。这需要在服务器上安装xclip且需要在ssh远程连接时开启X11。
此处附tmux剪贴板调用xclip的配置
# Copy the current buffer to the system clipboard
bind C-c run -b tmux save-buffer - | xclip -i -sel clipboard; tmux display-message \Tmux buffer saved to clipboard\# Pull the content from xclip into a new tmux buffer and then pastes it into the selected tmux window or pane
bind C-v run tmux set-buffer \$(xclip -o -sel clipboard)\; tmux paste-buffer注意一定要在远程连接时开启X11否则xclip无效。