mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge branch 'wrywerytwreywery-vt_prompt'
This commit is contained in:
commit
9cf2c9b26c
2 changed files with 3 additions and 2 deletions
|
@ -54,6 +54,8 @@ class Env(MutableMapping):
|
|||
return self._detyped
|
||||
ctx = {}
|
||||
for key, val in self._d.items():
|
||||
if callable(val):
|
||||
continue
|
||||
if not isinstance(key, string_types):
|
||||
key = str(key)
|
||||
if 'PATH' in key:
|
||||
|
|
|
@ -181,7 +181,6 @@ class Shell(Cmd):
|
|||
p = env['PROMPT']
|
||||
if callable(p):
|
||||
p = p()
|
||||
else:
|
||||
p = format_prompt(p)
|
||||
else:
|
||||
p = "set '$PROMPT = ...' $ "
|
||||
|
|
Loading…
Add table
Reference in a new issue