How can I change the sage console prompt?
How can I change the sage console prompt from 'sage: ' to '>>> ' ?
I'm running Sage 8.1 (binary install) in Windows 7.
I assume I need to edit a configuration file, or perhaps it's controlled by an environmental variable.
If it's controlled by an environmental variable, which one, and what setting?
If it needs a configuration file edit, which file, where is the file located, and what edit is needed?
Thanks in advance.
If relevant to anyone with a dark background in their terminal wanting to change the color in the prompt, an option is to go to
colors
undersrc/sage/repl/prompts.py
. Possible values to return are any of[u'Neutral', u'NoColor', u'LightBG', u'Linux']
.@fidbc, or after starting Sage, just type one of
%colors LightBG
,%colors Linux
,%colors Neutral
,%colors NoColor
. Or you could put such a line in a file called init.sage inside the .sage folder in your home directory.