From 7243b34e4110128051d0a9f3d6cbbf7da3790289 2016-05-01 12:20:54 From: Thomas Kluyver Date: 2016-05-01 12:20:54 Subject: [PATCH] Back to explicit styles for the prompt tokens I didn't notice these had changed in Carreau's PR. The prompt number in particular was looking horrible with the default settings. I have reverted back to what we had before. --- diff --git a/IPython/terminal/ptshell.py b/IPython/terminal/ptshell.py index 450ba4f..9f1288f 100644 --- a/IPython/terminal/ptshell.py +++ b/IPython/terminal/ptshell.py @@ -252,8 +252,8 @@ class TerminalInteractiveShell(InteractiveShell): """ style_cls = get_style_by_name(name) style_overrides = { - Token.Prompt: style_cls.styles.get( Token.Keyword, '#009900'), - Token.PromptNum: style_cls.styles.get( Token.Literal.Number, '#00ff00 bold') + Token.Prompt: '#009900', + Token.PromptNum: '#00ff00 bold', } if name is 'default': style_cls = get_style_by_name('default')