fix(tmux): replace pbcopy with cross-platform clipboard command

Merged
SH
7mo ago
+5-4

Summary

  • Replaces hardcoded pbcopy (macOS-only) with a portable clipboard command defined once as @clipboard_cmd
  • Detects environment at runtime: pbcopy on macOS, wl-copy on Wayland, xclip on 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.