@@ -28,14 +28,17 @@ CDlgSettingsTerminal::CDlgSettingsTerminal(CParameterTerminalBase *pPara, QWidge
2828 AddShell (" C:\\ Windows\\ System32\\ cmd.exe" );
2929 AddShell (" C:\\ Windows\\ System32\\ WindowsPowerShell\\ v1.0\\ powershell.exe" );
3030 AddShell (" C:\\ Windows\\ System32\\ cmd.exe" , " msys64" );
31+ AddShell (" C:\\ Windows\\ System32\\ cmd.exe" , " cygwin64" );
3132 AddShell (qgetenv (" ComSpec" ));
3233 QString szHelp;
3334 szHelp = tr (" Help:" ) + " \n " ;
3435 szHelp += tr (" - Set bash shell:" ) + " \n " ;
3536 szHelp += tr (" cmd shell with parameters:" ) + " '/k %BASH_PATH% -l'\n " ;
3637 szHelp += tr (" eg:" ) + " \n " ;
37- szHelp += tr (" msys64 bash path:" ) + " 'c:\\ msys64\\ usr\\ bin\\ bash.exe'\n " ;
38- szHelp += tr (" So that cmd shell with parameters:" ) + " '/k c:\\ msys64\\ usr\\ bin\\ bash.exe -l'" ;
38+ szHelp += tr (" msys64 default bash path:" ) + " 'c:\\ msys64\\ usr\\ bin\\ bash.exe'\n " ;
39+ szHelp += tr (" So that cmd shell with parameters:" ) + " '/k c:\\ msys64\\ usr\\ bin\\ bash.exe -l'\n " ;
40+ szHelp += tr (" cygwin64 default bash path:" ) + " 'c:\\ cygwin64\\ bin\\ bash.exe'\n " ;
41+ szHelp += tr (" So that cmd shell with parameters:" ) + " '/k c:\\ cygwin64\\ bin\\ bash.exe -l'" ;
3942 ui->teHelp ->setText (szHelp);
4043 ui->teHelp ->show ();
4144#endif
@@ -133,5 +136,8 @@ void CDlgSettingsTerminal::on_cbShell_currentIndexChanged(int index)
133136 if (" msys64" == szName && ui->leParameters ->text ().isEmpty ()) {
134137 ui->leParameters ->setText (" /k c:\\ msys64\\ usr\\ bin\\ bash.exe -l" );
135138 }
139+ if (" cygwin64" == szName && ui->leParameters ->text ().isEmpty ()) {
140+ ui->leParameters ->setText (" /k c:\\ cygwin64\\ bin\\ bash.exe -l" );
141+ }
136142}
137143
0 commit comments