From 4b810bb1a6e4c9c51369dc54ad7f29c8f9beaa14 Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Thu, 2 Nov 2017 23:19:47 -0400 Subject: [PATCH] Add cool utf-8 prompt to cpython interpreter --- python/.pythonrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/.pythonrc b/python/.pythonrc index 8c57829..3857c13 100644 --- a/python/.pythonrc +++ b/python/.pythonrc @@ -1,4 +1,5 @@ #{- ~/.pythonrc -}# +# -*- coding: utf-8 -*- import atexit import os @@ -13,9 +14,9 @@ red = '\001\033[1;31m\002' reset = '\001\033[0m\002' # Primary prompt: (>>> ) in magenta -sys.ps1 = blue + '>' + reset + ' ' +sys.ps1 = yellow + '○' + reset + ' ' # Secondary prompt: (... ) in red -sys.ps2 = yellow + '.' + reset + ' ' +sys.ps2 = blue + '•' + reset + ' ' # Use ~/.history/python as a history file instead of ~/.python_history def custom_readline():