Make python prompt cooler!

I should probably do real work, but I'm waiting for something to compile
so ya know.
This commit is contained in:
Andrew R. M 2017-11-03 16:26:13 -04:00
parent 1338ee9f3a
commit f9a82e2d34

View File

@ -8,15 +8,12 @@ import sys
blue = '\001\033[1;34m\002' blue = '\001\033[1;34m\002'
yellow = '\001\033[1;33m\002' yellow = '\001\033[1;33m\002'
magenta = '\001\033[1;35m\002'
red = '\001\033[1;31m\002'
reset = '\001\033[0m\002' reset = '\001\033[0m\002'
# Primary prompt: (>>> ) in magenta # Primary prompt: (∞) in yellow
sys.ps1 = yellow + '' + reset + ' ' sys.ps1 = yellow + '' + reset + ' '
# Secondary prompt: (... ) in red # Secondary prompt: (•) in blue
sys.ps2 = blue + '' + reset + ' ' sys.ps2 = blue + '' + reset + ' '
# Use ~/.history/python as a history file instead of ~/.python_history # Use ~/.history/python as a history file instead of ~/.python_history
def custom_readline(): def custom_readline():