Skip to content

Commit

Permalink
Host Settings to capture the rest of the ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Feb 7, 2022
1 parent 42bae7b commit c5e2a9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BlinkConfig/BKHosts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ extension BKHosts {
let components = line
.trimmingCharacters(in: .whitespaces)
.components(separatedBy: CharacterSet(charactersIn: " \t"))
if components.count == 2,
if components.count >= 2,
components[0] != "#" {
cfg.append((components[0], components[1]))
cfg.append((components[0], components[1...].joined(separator: " ")))
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Settings/Model/BKDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ + (BOOL)saveDefaults {
return NO;
}

[BKDefaults saveGlobalSSHConfig];

return result;
}

Expand Down

0 comments on commit c5e2a9b

Please sign in to comment.