clipboard: Fix tmux clipcopy after testing
Tmux must have special handling for /dev/stdin since it's managing the
terminal itself. This was tested with tmux-2.9a on macOS.
Diff
1diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh
2index 671d33d8ee7e0a3f7cd0da1dadf18a3a90cf2c4b..5001f469562058ae0379dd11a15b19e1506ec9da 100644
3--- a/lib/clipboard.zsh
4+++ b/lib/clipboard.zsh
5@@ -76,7 +76,7 @@ function detect-clipboard() {
6 function clipcopy() { win32yank -i < "${1:-/dev/stdin}"; }
7 function clippaste() { win32yank -o; }
8 elif [ -n "${TMUX:-}" ] && (( ${+commands[tmux]} )); then
9- function clipcopy() { tmux load-buffer "${1:-/dev/stdin}"; }
10+ function clipcopy() { tmux load-buffer "${1:--}"; }
11 function clippaste() { tmux save-buffer -; }
12 else
13 function _retry_clipboard_detection_or_fail() {