Skip to content

Instantly share code, notes, and snippets.

View ildoonet's full-sized avatar
🎯
Focusing

curtis.abcd ildoonet

🎯
Focusing
View GitHub Profile
#!/bin/bash
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It
# only accepts ESC backslash for ST.
function print_osc() {
if [[ $TERM == screen* ]] ; then
printf "\033Ptmux;\033\033]"
else
printf "\033]"