From 53abb926f04143c9f5e5c42252865a2e9e041c45 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Mon, 12 Mar 2018 09:18:44 +0100 Subject: [PATCH] wip --- .tmux.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() {