diff --git a/IPython/core/history.py b/IPython/core/history.py index 7a8be08..65c85b4 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -207,6 +207,9 @@ class HistoryManager(object): """ if source_raw is None: source_raw = source + # do not store quit/exit commands + if source_raw in ['Quit', 'quit', 'Exit', 'exit', '%Quit', '%quit', '%Exit', '%exit']: + return self.input_hist_parsed.append(source) self.input_hist_raw.append(source_raw) self.shadow_hist.add(source)