提交 7fca8ee8 编写于 作者: D Daniel Imms

Fix default color prompt on various Linux distros

Fixes #9681
上级 96405a29
...@@ -15,7 +15,9 @@ var name; ...@@ -15,7 +15,9 @@ var name;
if (os.platform() === 'win32') { if (os.platform() === 'win32') {
name = path.basename(process.env.PTYSHELL); name = path.basename(process.env.PTYSHELL);
} else { } else {
name = fs.existsSync('/usr/share/terminfo/x/xterm-256color') ? 'xterm-256color' : 'xterm'; // Using 'xterm-256color' here helps ensure that the majority of Linux distributions will use a
// color prompt as defined in the default ~/.bashrc file.
name = 'xterm-256color';
} }
var shell = process.env.PTYSHELL; var shell = process.env.PTYSHELL;
var args = getArgs(); var args = getArgs();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册