Show More
@@ -140,7 +140,7 b' HOME = py3compat.str_to_unicode(os.environ.get("HOME","//////:::::ZZZZZ,,,~~~"))' | |||||
140 | # We precompute a few more strings here for the prompt_specials, which are |
|
140 | # We precompute a few more strings here for the prompt_specials, which are | |
141 | # fixed once ipython starts. This reduces the runtime overhead of computing |
|
141 | # fixed once ipython starts. This reduces the runtime overhead of computing | |
142 | # prompt strings. |
|
142 | # prompt strings. | |
143 | USER = py3compat.str_to_unicode(os.environ.get("USER")) |
|
143 | USER = py3compat.str_to_unicode(os.environ.get("USER",'')) | |
144 | HOSTNAME = py3compat.str_to_unicode(socket.gethostname()) |
|
144 | HOSTNAME = py3compat.str_to_unicode(socket.gethostname()) | |
145 | HOSTNAME_SHORT = HOSTNAME.split(".")[0] |
|
145 | HOSTNAME_SHORT = HOSTNAME.split(".")[0] | |
146 | ROOT_SYMBOL = "#" if (os.name=='nt' or os.getuid()==0) else "$" |
|
146 | ROOT_SYMBOL = "#" if (os.name=='nt' or os.getuid()==0) else "$" |
General Comments 0
You need to be logged in to leave comments.
Login now