Tmux copy to clipboard vi mode
brew install reattach-to-user-namespace# debian
sudo apt install xsel
# fedora
sudo dnf install xselLet me know if it works 😄
Add set -g @plugin 'casonadams/tmux-vi-yank' to plugins in config file. ctrl+b I to install.
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
set -g @plugin 'casonadams/tmux-vi-yank'
run -b '~/.tmux/plugins/tpm/tpm'| Command | Result |
|---|---|
ctrl+b enter |
Enter copy mode |
v |
vi visual selection mode |
shift + v |
vi line copy mode |
y |
Copy selected text to clipboard |
enter |
Copy selected text to clipboard |