MacOS - turning off the bash session restore
If you want to discard your Terminal state, you have to quit with holding the Alt key. The menu will change from "Quit Terminal" to "Quit and close all windows".



You can also make it effective with the "normal" quit Cmd + Q, this way:


Open your terminal
Delete the content of the saved state folder: rm -rf
~/Library/Saved\ Application\ State/com.apple.Terminal.savedState/*
Lock the folder: chflags uchg ~/Library/Saved\ Application\
State/com.apple.Terminal.savedState/
Now, every time you quit your terminal, it won't be saved