Addeds environment name to PROMPT on Cmd, Cmder,ConEmu

This commit is contained in:
gtalarico
2018-05-08 21:55:52 -04:00
parent adf7252dbf
commit a6d5c9df5f
+2
View File
@@ -215,6 +215,8 @@ def shell(env, cwd=None):
inve(env, shell, '-c', shell_check)
except CalledProcessError:
return
if shell_name in ('Cmder', 'cmd'):
os.environ['PROMPT'] = '({0}) {1}'.format(env, os.environ['PROMPT'])
if shell_name == 'bash':
fork_bash(env, cwd)
elif shell_name == 'Cmder':