GeneralCommandLine (Project project, String workingDirectory, String command) { PtyCommandLine commandLine = new PtyCommandLine(); commandLine.withConsoleMode(false); commandLine.withInitialColumns(120); commandLine.withParentEnvironmentType(GeneralCommandLine.ParentEnvironmentType.CONSOLE); commandLine.setWorkDirectory(workingDirectory); commandLine.withExePath(ShConfigurationType.getDefaultShell(project)); commandLine.withParameters("-c"); commandLine.withParameters(command); return commandLine; }