Created
July 17, 2025 21:49
-
-
Save theodric/b066271a35161a0b0b6425e8b7c83faa to your computer and use it in GitHub Desktop.
Revisions
-
theodric created this gist
Jul 17, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # set cursor color to bright pink in terminals that support OSC 12 set_cursor_color() { # only do this if we're in an interactive tty and not a dumb term [[ $- == *i* && $TERM != "dumb" ]] || return # OSC 12 escape printf '\e]12;#ff00ff\a' } # detect if we're inside tmux if [[ -n $TMUX ]]; then # pass through tmux by wrapping in DCS passthrough printf '\ePtmux;\e\e]12;#ff00ff\a\e\\' else set_cursor_color fi