Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions shell/AIShell.Integration/InitAndCleanup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace AIShell.Integration;

public class InitAndCleanup : IModuleAssemblyInitializer, IModuleAssemblyCleanup
{
private const int ScriptVersion = 1;
private const int ScriptVersion = 2;
private const string ScriptFileTemplate = "aish_split_pane_v{0}.py";
private const string SplitPanePythonCode = """
import iterm2
Expand All @@ -31,7 +31,8 @@ await app.async_activate()

change = iterm2.LocalWriteOnlyProfile()
change.set_use_custom_command('Yes')
change.set_command(f'{app_path} --channel {channel}')
# Use login shell to inherit proper PATH and environment
change.set_command(f'/bin/zsh -l -c "{app_path} --channel {channel}"')

# Split pane vertically
split_pane = await current_pane.async_split_pane(vertical=True, profile_customizations=change)
Expand Down
Loading