Resetting the buffer in iTerm2
Sometimes in scripts or chained commands I want to reset the terminal. After playing around, I set this as an alias in my shell:
echo -ne '\033]50;ClearScrollback\a'This clears the scrollback without resetting the terminal likeĀ reset.