Skip to content

Commit

Permalink
style: Fix SwiftLint Errors
Browse files Browse the repository at this point in the history
Signed-off-by: Qian Qian "Cubik"‎ <cubik65536@cubik65536.top>
  • Loading branch information
Cubik65536 committed Aug 1, 2023
1 parent 32cd66d commit d8720ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CodeEdit/Features/TerminalEmulator/TerminalEmulatorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct TerminalEmulatorView: NSViewRepresentable {
}

/// Check if the source command for shell integration already exists
/// Returns true if it already exists or encountered an error, so no new commands will be added to user's source file
/// Returns true if it already exists or encountered an error, no new commands will be added to user's source file
/// Returns false if it's not there, new commands will be added to user's source file
private func shellIntegrationInstalled(sourceScriptPath: String, command: String) -> Bool {
do {
Expand Down Expand Up @@ -169,7 +169,7 @@ struct TerminalEmulatorView: NSViewRepresentable {
let shellIntegrationScriptPath = (
shellIntegrationScript.absoluteString[7..<shellIntegrationScript.absoluteString.count]
) ?? ""

// Get the path of user's shell's source file
// Only zsh and bash are supported for now
var sourceScriptPath: String = ""
Expand Down Expand Up @@ -286,7 +286,7 @@ struct TerminalEmulatorView: NSViewRepresentable {

var terminalEnvironment: [String] = Terminal.getEnvironmentVariables()
terminalEnvironment.append("TERM_PROGRAM=CodeEditApp_Terminal")

setupShellIntegration(shell: shellName, environment: terminalEnvironment)

terminal.startProcess(executable: shell, environment: terminalEnvironment, execName: shellIdiom)
Expand Down

0 comments on commit d8720ed

Please sign in to comment.