Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ ZVM_SYSTEM_CLIPBOARD_ENABLED=true
Auto-detection:

- macOS: `pbcopy` and `pbpaste`
- Wayland: `wl-copy` and `wl-paste -n`
- Wayland: `wl-copy` and `wl-paste -n`, or `waycopy` and `waypaste`
- X11: `xclip` or `xsel`

Override commands:
Expand Down
7 changes: 6 additions & 1 deletion zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
# - For macOS, you can set it to `pbcopy` and `pbpaste`
# - For Linux, you can set it to `xclip -selection clipboard` and
# `xclip -selection clipboard -o`)
# - For Wayland, you can also use `wl-copy` and `wl-paste`
# - For Wayland, you can also use `wl-copy` and `wl-paste`, or `waycopy` and `waypaste`
# - For WSL, you can also use `clip.exe`
#
# If you don't set these two commands, the plugin will try to detect them
Expand Down Expand Up @@ -3565,6 +3565,11 @@ function zvm_clipboard_detect() {
ZVM_CLIPBOARD_PASTE_CMD='wl-paste -n'
return
fi
if zvm_exist_command waycopy && zvm_exist_command waypaste; then
ZVM_CLIPBOARD_COPY_CMD='waycopy'
ZVM_CLIPBOARD_PASTE_CMD='waypaste'
return
fi
if zvm_exist_command xclip; then
ZVM_CLIPBOARD_COPY_CMD='xclip -selection clipboard'
ZVM_CLIPBOARD_PASTE_CMD='xclip -selection clipboard -o'
Expand Down