Support *nix like development prompt on Windows

CMD on windows could support customized prompt like $PS1 on bash
This commit is contained in:
Seungha Yang 2018-11-04 01:50:30 +09:00
parent ab47fccaec
commit bc5bc17667

View file

@ -203,6 +203,7 @@ if __name__ == "__main__":
if not args:
if os.name is 'nt':
args = [os.environ.get("COMSPEC", r"C:\WINDOWS\system32\cmd.exe")]
args += ['/k', 'prompt [gst-{}] $P$G'.format(gst_version)]
else:
args = [os.environ.get("SHELL", os.path.realpath("/bin/sh"))]
if "bash" in args[0]: