##// END OF EJS Templates
Use len and str from builtins in computing dynamic prompts....
Fernando Perez -
Show More
@@ -128,7 +128,7 b' prompt_specials_color = {'
128 r'\N': '${self.cache.prompt_count}',
128 r'\N': '${self.cache.prompt_count}',
129 # Prompt/history count, with the actual digits replaced by dots. Used
129 # Prompt/history count, with the actual digits replaced by dots. Used
130 # mainly in continuation prompts (prompt_in2)
130 # mainly in continuation prompts (prompt_in2)
131 r'\D': '${"."*len(str(self.cache.prompt_count))}',
131 r'\D': '${"."*__builtins__.len(__builtins__.str(self.cache.prompt_count))}',
132 # Current working directory
132 # Current working directory
133 r'\w': '${os.getcwd()}',
133 r'\w': '${os.getcwd()}',
134 # Current time
134 # Current time
General Comments 0
You need to be logged in to leave comments. Login now