ipython_config_pysh.py
26 lines
| 842 B
| text/x-python
|
PythonLexer
Brian Granger
|
r2258 | # This can be used at any point in a config file to load a sub config | |
# and merge it into the current one. | |||
load_subconfig('ipython_config.py') | |||
Brian Granger
|
r2073 | ||
Brian Granger
|
r2258 | InteractiveShell.prompt_in1 = '\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' | |
Brian Granger
|
r2252 | InteractiveShell.prompt_in2 = '\C_Green|\C_LightGreen\D\C_Green> ' | |
InteractiveShell.prompt_out = '<\#> ' | |||
Brian Granger
|
r2073 | ||
Brian Granger
|
r2252 | InteractiveShell.prompts_pad_left = True | |
Brian Granger
|
r2073 | ||
Brian Granger
|
r2252 | InteractiveShell.separate_in = '' | |
InteractiveShell.separate_out = '' | |||
InteractiveShell.separate_out2 = '' | |||
Brian Granger
|
r2073 | ||
Brian Granger
|
r2258 | PrefilterManager.multi_line_specials = True | |
lines = """ | |||
%rehashx | |||
""" | |||
# You have to make sure that attributes that are containers already | |||
# exist before using them. Simple assigning a new list will override | |||
# all previous values. | |||
if hasattr(Global, 'exec_lines'): | |||
Global.exec_lines.append(lines) | |||
else: | |||
Global.exec_lines = [lines] |