fix tmux copy on nixos hosts
This commit is contained in:
parent
65c42fa1a0
commit
e05f5ef788
2 changed files with 12 additions and 3 deletions
|
|
@ -45,7 +45,7 @@
|
||||||
httpie
|
httpie
|
||||||
openssh
|
openssh
|
||||||
gnumake
|
gnumake
|
||||||
|
|
||||||
# Network diagnostic tools
|
# Network diagnostic tools
|
||||||
bind # DNS utilities (dig, nslookup, mdig)
|
bind # DNS utilities (dig, nslookup, mdig)
|
||||||
iputils # Core network tools (ping, traceroute)
|
iputils # Core network tools (ping, traceroute)
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
netcat-gnu # Network connection utility
|
netcat-gnu # Network connection utility
|
||||||
curl # HTTP client
|
curl # HTTP client
|
||||||
wget # Web downloader
|
wget # Web downloader
|
||||||
|
|
||||||
# Command-line utilities
|
# Command-line utilities
|
||||||
ncdu
|
ncdu
|
||||||
git-credential-oauth
|
git-credential-oauth
|
||||||
|
|
@ -62,6 +62,10 @@
|
||||||
fastfetch
|
fastfetch
|
||||||
coreutils # GNU core utilities (base64, etc.)
|
coreutils # GNU core utilities (base64, etc.)
|
||||||
|
|
||||||
|
# Clipboard utilities for tmux integration
|
||||||
|
wl-clipboard # Wayland clipboard (wl-copy/wl-paste)
|
||||||
|
xclip # X11 clipboard fallback
|
||||||
|
|
||||||
# Development and build tools
|
# Development and build tools
|
||||||
python312
|
python312
|
||||||
uv
|
uv
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,12 @@
|
||||||
|
|
||||||
# Better copy mode
|
# Better copy mode
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe "pbcopy"
|
# Platform-aware clipboard: pbcopy (macOS) | wl-copy (Wayland) | xclip (X11)
|
||||||
|
bind-key -T copy-mode-vi y if-shell 'command -v pbcopy' \
|
||||||
|
'send-keys -X copy-pipe-and-cancel "pbcopy"' \
|
||||||
|
'if-shell "test -n \"$WAYLAND_DISPLAY\"" \
|
||||||
|
"send-keys -X copy-pipe-and-cancel \"wl-copy\"" \
|
||||||
|
"send-keys -X copy-pipe-and-cancel \"xclip -selection clipboard\""'
|
||||||
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||||
|
|
||||||
# New window with current path
|
# New window with current path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue