Add iterm2 marks to long-running outputs

June 1, 2017

iTerm2 has these very convenient markers that let you jump back/forward to “significant moments” in shell output. You can add custom marks to long-running output, such as log files. The shell function iterm2_prompt_mark will print the right escape sequence. Redirect it to a file to make it somewhat readable and it’ll be “\033]133;A\007”.

Simply puts/print/echo that in any script to make your own mark in the world.

Add iterm2 marks to long-running outputs - June 1, 2017 - mw