forked from qt-creator/qt-creator
Terminal: Fix Shellintegration for bash
bash needs long options to be before short options. Change-Id: I277a9283253f11bcb76e0366a0b6c5a0346fdfd8 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -120,7 +120,12 @@ void ShellIntegration::prepareProcess(Utils::Process &process)
|
||||
m_tempDir.filePath(filesToCopy.bash.rcFile.fileName()));
|
||||
rcPath.copyFile(tmpRc);
|
||||
|
||||
cmd.addArgs({"--init-file", tmpRc.nativePath()});
|
||||
CommandLine newCmd = {cmd.executable(), {"--init-file", tmpRc.nativePath()}};
|
||||
|
||||
if (cmd.arguments() == "-l")
|
||||
newCmd.addArg("-l");
|
||||
|
||||
cmd = newCmd;
|
||||
} else if (cmd.executable().baseName() == "zsh") {
|
||||
for (const FileToCopy &file : filesToCopy.zsh.files) {
|
||||
const auto copyResult = file.source.copyFile(
|
||||
|
||||
Reference in New Issue
Block a user