##// END OF EJS Templates
Only track unique history of commands
Jamshed Vesuna -
Show More
@@ -138,7 +138,7 b' class TerminalInteractiveShell(InteractiveShell):'
138 highlighting: \n %s""" % ', '.join(get_all_styles())
138 highlighting: \n %s""" % ', '.join(get_all_styles())
139 ).tag(config=True)
139 ).tag(config=True)
140
140
141
141
142 @observe('highlighting_style')
142 @observe('highlighting_style')
143 @observe('colors')
143 @observe('colors')
144 def _highlighting_style_changed(self, change):
144 def _highlighting_style_changed(self, change):
@@ -183,7 +183,7 b' class TerminalInteractiveShell(InteractiveShell):'
183 help="Automatically set the terminal title"
183 help="Automatically set the terminal title"
184 ).tag(config=True)
184 ).tag(config=True)
185
185
186 display_completions = Enum(('column', 'multicolumn','readlinelike'),
186 display_completions = Enum(('column', 'multicolumn','readlinelike'),
187 help= ( "Options for displaying tab completions, 'column', 'multicolumn', and "
187 help= ( "Options for displaying tab completions, 'column', 'multicolumn', and "
188 "'readlinelike'. These options are for `prompt_toolkit`, see "
188 "'readlinelike'. These options are for `prompt_toolkit`, see "
189 "`prompt_toolkit` documentation for more information."
189 "`prompt_toolkit` documentation for more information."
@@ -230,6 +230,7 b' class TerminalInteractiveShell(InteractiveShell):'
230 cell = cell.rstrip()
230 cell = cell.rstrip()
231 if cell and (cell != last_cell):
231 if cell and (cell != last_cell):
232 history.append(cell)
232 history.append(cell)
233 last_cell = cell
233
234
234 self._style = self._make_style_from_name_or_cls(self.highlighting_style)
235 self._style = self._make_style_from_name_or_cls(self.highlighting_style)
235 style = DynamicStyle(lambda: self._style)
236 style = DynamicStyle(lambda: self._style)
@@ -255,7 +256,7 b' class TerminalInteractiveShell(InteractiveShell):'
255 """
256 """
256 Small wrapper that make an IPython compatible style from a style name
257 Small wrapper that make an IPython compatible style from a style name
257
258
258 We need that to add style for prompt ... etc.
259 We need that to add style for prompt ... etc.
259 """
260 """
260 style_overrides = {}
261 style_overrides = {}
261 if name_or_cls == 'legacy':
262 if name_or_cls == 'legacy':
General Comments 0
You need to be logged in to leave comments. Login now