1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-24 18:43:46 +08:00

feat(clipboard): send value to tmux client when copying (#13451)

This commit is contained in:
bretello 2025-12-22 13:20:24 +01:00 committed by GitHub
parent 3a73094983
commit 129aeee6bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,7 @@ function detect-clipboard() {
function clipcopy() { cat "${1:-/dev/stdin}" | termux-clipboard-set; }
function clippaste() { termux-clipboard-get; }
elif [ -n "${TMUX:-}" ] && (( ${+commands[tmux]} )); then
function clipcopy() { tmux load-buffer "${1:--}"; }
function clipcopy() { tmux load-buffer -w "${1:--}"; }
function clippaste() { tmux save-buffer -; }
else
function _retry_clipboard_detection_or_fail() {