smart_exit
smart_exit [-n]Closes the shell session. In Kitty, captures the terminal scrollback toa timestamped log file in $SCROLLBACK_HISTORY_DIR before exiting.Automatically prunes the oldest logs when the count exceeds$SCROLLBACK_HISTORY_MAX_FILES.
-n/--no-log Exit without saving a scrollback logThe exit builtin is wired to smart_exit for interactive sessions. Typing exit or Ctrl+D behaves identically to smart_exit.
smart_exitsmart_exit --no-log