Mercurial > dotfiles
view bin/executable_clip @ 753:942c3ae067e7
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> |
---|---|
date | Mon, 12 Dec 2022 20:19:43 +0000 |
parents | eba1dee43703 |
children |
line wrap: on
line source
#!/usr/bin/env bash DATA=$(cat - | sed -r "s/\x1b\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | base64) if [ -z "$TMUX" ]; then echo -ne "\e]52;c;${DATA}\x07" else echo -ne "\ePtmux;\e\e]52;c;${DATA}\x07\e\\" fi