Fix default color prompt on various Linux distros

Fixes #9681
This commit is contained in:
Daniel Imms 2016-07-27 14:16:22 -07:00
parent 96405a2985
commit 7fca8ee82d

View file

@ -15,7 +15,9 @@ var name;
if (os.platform() === 'win32') {
name = path.basename(process.env.PTYSHELL);
} 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 args = getArgs();