forked from qt-creator/qt-creator
Terminal: Fix shell integration for login shells
Change-Id: I78cc4b60b4e2164752b7b65e2e61659e5d5bbe22 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -54,15 +54,15 @@ bool ShellIntegration::canIntegrate(const Utils::CommandLine &cmdLine)
|
|||||||
if (cmdLine.executable().needsDevice())
|
if (cmdLine.executable().needsDevice())
|
||||||
return false; // TODO: Allow integration for remote shells
|
return false; // TODO: Allow integration for remote shells
|
||||||
|
|
||||||
if (!cmdLine.arguments().isEmpty())
|
if (cmdLine.executable().baseName() == "zsh")
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (!cmdLine.arguments().isEmpty() && cmdLine.arguments() != "-l")
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (cmdLine.executable().baseName() == "bash")
|
if (cmdLine.executable().baseName() == "bash")
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (cmdLine.executable().baseName() == "zsh")
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (cmdLine.executable().baseName() == "pwsh"
|
if (cmdLine.executable().baseName() == "pwsh"
|
||||||
|| cmdLine.executable().baseName() == "powershell") {
|
|| cmdLine.executable().baseName() == "powershell") {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user