Skip to content

Commit bbef3ee

Browse files
g-planearcanis
authored andcommitted
feat(cli): enable emoji on Hyper terminal (#5875)
1 parent fc94a16 commit bbef3ee

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/cli/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ export function main({
8686
commander.option('--preferred-cache-folder <path>', 'specify a custom folder to store the yarn cache if possible');
8787
commander.option('--cache-folder <path>', 'specify a custom folder that must be used to store the yarn cache');
8888
commander.option('--mutex <type>[:specifier]', 'use a mutex to ensure only one yarn instance is executing');
89-
commander.option('--emoji [bool]', 'enable emoji in output', boolify, process.platform === 'darwin');
89+
commander.option(
90+
'--emoji [bool]',
91+
'enable emoji in output',
92+
boolify,
93+
process.platform === 'darwin' || process.env.TERM_PROGRAM === 'Hyper' || process.env.TERM_PROGRAM === 'HyperTerm',
94+
);
9095
commander.option('-s, --silent', 'skip Yarn console logs, other types of logs (script output) will be printed');
9196
commander.option('--cwd <cwd>', 'working directory to use', process.cwd());
9297
commander.option('--proxy <host>', '');

0 commit comments

Comments
 (0)