tmux: Updated config

This commit is contained in:
2026-02-12 22:29:10 +01:00
parent c813e48c26
commit afb355ba50
2 changed files with 15 additions and 16 deletions

View File

@@ -7,11 +7,10 @@ set -eu
buf=$(cat)
# Try methods in order of preference
copy_backend_remote_tunnel_port=$(tmux show-option -gvq "@copy_backend_remote_tunnel_port" 2>/dev/null || echo "")
# Method 1: Use pbcopy if available (local macOS)
if command -v pbcopy >/dev/null 2>&1; then
printf "%s" "$buf" | pbcopy
printf '%s' "$buf" | pbcopy
# Method 2: OSC 52 (for mosh/ssh)
elif [ -n "${TMUX:-}" ]; then
# Get the tmux tty