diff --git a/.tmux.conf b/.tmux.conf index 15e23f5..3f51bb4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -623,10 +623,14 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # } # # _copy() { +# exec 2> /tmp/log.txt +# set -x # tty="$SSH_TTY" # tty=${tty:-$1} # tty=${tty:-$(tmux display -p '#{pane_tty}')} -# buffer=${2:-$(tmux save-buffer -)} +# buffer=${2:-$(tmux save-buffer - || true)} +# +# [ -z "$buffer" ] && return # # if [ "$tty" != "$SSH_TTY" ]; then # command -v pbcopy > /dev/null 2>&1 && command='pbcopy' @@ -643,6 +647,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # fi # # printf '\033Ptmux;\033\033]52;c;%s\a\033\\' "$(printf %s "$buffer" | head -c 74994 | base64)" > "$tty" +# set +x # } # # _apply_overrides() {