From f796a412d56a913604872f8476802d6920c86dd1 2010-12-16 07:30:13 From: Satrajit Ghosh Date: 2010-12-16 07:30:13 Subject: [PATCH] removed quit/exit commands from history --- 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)