@@ -14,23 +14,33 @@ import { ITerminalActivationCommandProvider, ITerminalHelper, TerminalShellType
1414
1515// Types of shells can be found here:
1616// 1. https://wiki.ubuntu.com/ChangingShells
17- const IS_BASH = / ( b a s h .e x e $ | w s l .e x e $ | b a s h $ | z s h $ | k s h $ ) / i;
17+ const IS_GITBASH = / ( g i t b a s h .e x e $ ) / i;
18+ const IS_BASH = / ( b a s h .e x e $ | b a s h $ ) / i;
19+ const IS_WSL = / ( w s l .e x e $ ) / i;
20+ const IS_ZSH = / ( z s h $ ) / i;
21+ const IS_KSH = / ( k s h $ ) / i;
1822const IS_COMMAND = / c m d .e x e $ / i;
1923const IS_POWERSHELL = / ( p o w e r s h e l l .e x e $ | p o w e r s h e l l $ ) / i;
2024const IS_POWERSHELL_CORE = / ( p w s h .e x e $ | p w s h $ ) / i;
2125const IS_FISH = / ( f i s h $ ) / i;
2226const IS_CSHELL = / ( c s h $ ) / i;
27+ const IS_TCSHELL = / ( t c s h $ ) / i;
2328
2429@injectable ( )
2530export class TerminalHelper implements ITerminalHelper {
2631 private readonly detectableShells : Map < TerminalShellType , RegExp > ;
27- constructor ( @inject ( IServiceContainer ) private serviceContainer : IServiceContainer ) {
32+ constructor ( @inject ( IServiceContainer ) private serviceContainer : IServiceContainer ) {
2833
2934 this . detectableShells = new Map < TerminalShellType , RegExp > ( ) ;
3035 this . detectableShells . set ( TerminalShellType . powershell , IS_POWERSHELL ) ;
36+ this . detectableShells . set ( TerminalShellType . gitbash , IS_GITBASH ) ;
3137 this . detectableShells . set ( TerminalShellType . bash , IS_BASH ) ;
38+ this . detectableShells . set ( TerminalShellType . wsl , IS_WSL ) ;
39+ this . detectableShells . set ( TerminalShellType . zsh , IS_ZSH ) ;
40+ this . detectableShells . set ( TerminalShellType . ksh , IS_KSH ) ;
3241 this . detectableShells . set ( TerminalShellType . commandPrompt , IS_COMMAND ) ;
3342 this . detectableShells . set ( TerminalShellType . fish , IS_FISH ) ;
43+ this . detectableShells . set ( TerminalShellType . tcshell , IS_TCSHELL ) ;
3444 this . detectableShells . set ( TerminalShellType . cshell , IS_CSHELL ) ;
3545 this . detectableShells . set ( TerminalShellType . powershellCore , IS_POWERSHELL_CORE ) ;
3646 }
0 commit comments