Skip to content

Commit

Permalink
fix TERMINAL_DEFAULT_FLOW_CONTROL properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jan 27, 2017
1 parent 5671d9b commit 71dcfb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const TERMINAL_DEFAULT_SHELL_WINDOWS = isAtLeastWindows10 ? powerShellPat
// Terminal flow control is disabled if the shell is zsh since the popular oh-my-zsh configuration
// overrides the ^S and ^Q keybindings which are used for flow control.
// TODO: This should check if ~/.oh-my-zsh exists as well
export const TERMINAL_DEFAULT_FLOW_CONTROL = typeof process.env.SHELL === 'string' && path.basename(process.env.SHELL) !== 'zsh';
export const TERMINAL_DEFAULT_FLOW_CONTROL = !(typeof process.env.SHELL === 'string' && path.basename(process.env.SHELL) === 'zsh');

export interface ITerminalProcessFactory {
create(env: { [key: string]: string }): cp.ChildProcess;
Expand Down

0 comments on commit 71dcfb7

Please sign in to comment.