fix(tmux): replace pbcopy with cross-platform clipboard command
Merged
SH
7mo ago+5+5+0123456789-4-4-0123456789
Summary
- Replaces hardcoded
pbcopy(macOS-only) with a portable clipboard command defined once as@clipboard_cmd - Detects environment at runtime:
pbcopyon macOS,wl-copyon Wayland,xclipon X11 - Applied to vi copy-mode yank, mouse drag copy, and pane history yank bindings
Test plan
- On macOS: yank in copy-mode copies to clipboard via
pbcopy - On Linux Wayland: yank copies via
wl-copy - On Linux X11: yank copies via
xclip
🤖 Generated with Claude Code
Summary by cubic
Replace macOS-only pbcopy in tmux with a cross‑platform clipboard command defined as @clipboard_cmd. It auto-detects the environment (pbcopy on macOS, wl-copy on Wayland, xclip -selection clipboard on X11) and is used for vi copy-mode yank, mouse drag copy, and pane history yanks.