chiark / gitweb /
dot/shell-rc: Only run tmpdir(1) if we actually found it.
[profile] / dot / ipython-config.py
CommitLineData
27be52b3
MW
1### -*-python -*-
2
60abf0c5 3import pygments as PYG
9ddf986b
MW
4import prompt_toolkit as PTK
5
27be52b3
MW
6c = get_config()
7
60abf0c5 8## Simple stuff.
27be52b3
MW
9c.InteractiveShell.autocall = 0
10c.InteractiveShell.autoindent = True
11c.InteractiveShell.automagic = False
12
13c.InteractiveShell.color_info = True
14c.InteractiveShell.colors = 'Linux'
15
27be52b3 16c.TerminalIPythonApp.display_banner = False
27be52b3 17c.TerminalInteractiveShell.confirm_exit = False
d4d07085 18c.TerminalInteractiveShell.display_completions = 'readlinelike'
60abf0c5
MW
19
20## Syntax colouring.
21T = PYG.token
22c.TerminalInteractiveShell.highlighting_style = 'emacs'
23c.TerminalInteractiveShell.highlighting_style_overrides = {
24 T.Keyword: 'bold #fff',
25 T.Comment: 'italic #54ff9f',
519d679d 26 T.Literal.Number: '#ffff00',
60abf0c5
MW
27 T.Literal.String: '#87ceff',
28 T.Literal.String.Escape: '#87ceff',
29 T.Literal.String.Interpol: '#87ceff',
30 T.Name: '#fff',
31 T.Name.Builtin: '#fff',
32 T.Name.Class: '#fff',
33 T.Name.Constant: 'italic #fff',
34 T.Name.Decorator: '#fff',
54d949fb 35 T.Name.Exception: '#fff',
60abf0c5
MW
36 T.Name.Function: '#fff',
37 T.Name.Function.Magic: '#fff',
38 T.Name.Label: '#fff',
39 T.Name.Namespace: '#fff',
40 T.Name.Variable: '#fff',
41 T.Name.Variable.Class: '#fff',
42 T.Name.Variable.Global: '#fff',
43 T.Name.Variable.Instance: '#fff',
44 T.Name.Variable.Magic: '#fff',
45 T.Operator: '#eec591',
46 T.Operator.Word: 'bold #fff',
9ddf986b
MW
47 T.Punctuation: '#eec591',
48 PTK.token.Token.MatchingBracket: '',
49 PTK.token.Token.MatchingBracket.Cursor: '',
50 PTK.token.Token.MatchingBracket.Other: 'bg:#006400'
60abf0c5 51}