mirror of
1
0
Fork 0
This commit is contained in:
Gregory Pakosz 2018-01-25 15:27:56 +01:00
parent c326130209
commit c463e3b185
1 changed files with 9 additions and 0 deletions

View File

@ -142,6 +142,8 @@ run -b 'tmux bind -T copy-mode-vi H send -X start-of-line 2> /dev/null || true'
run -b 'tmux bind -t vi-copy L end-of-line 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi L send -X end-of-line 2> /dev/null || true'
# copy to OS clipboard with OSC 52 escape sequence
bind y run -b 'cut -c3- ~/.tmux.conf | sh -s _osc52 #{pane_tty}'
# copy to Mac OSX clipboard
if -b 'command -v reattach-to-user-namespace > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | reattach-to-user-namespace pbcopy"'
# copy to X11 clipboard
@ -626,6 +628,13 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# esac
# }
#
# _osc52() {
# tty="$SSH_TTY"
# tty=${1:-$(tmux display -p '#{pane_tty}')}
# buffer=${2:-$(tmux save-buffer -)}
# printf "\033Ptmux;\033\033]52;c;%s\a\033\\" "$(printf %s "$buffer" | base64)" > "$tty"
# }
#
# _apply_overrides() {
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-false}
# if _is_enabled "$tmux_conf_theme_24b_colour"; then