wip
This commit is contained in:
parent
c326130209
commit
c463e3b185
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue