Skip to content

SSH host completion drops hosts when ~/.ssh/config uses a Windows drive-letter Include path #282

Description

@maxmilian

Link to @sesa501225's main issue: warpdotdev/warp#9417

The ssh host-completion generator (SSH_CONFIG_CMD in command-signatures/src/generators/common.rs) expands Include directives with an awk program that prefixes any path not starting with / with $HOME/.ssh/. A Windows drive-letter path such as Include C:\Users\me\.ssh\extra_config (written by Git Bash users who pick Windows ssh.exe at install) therefore becomes $HOME/.ssh/C:\Users\…, which does not exist — so the included hosts never appear in completion.

Fix proposed in #280 (normalize C:\… / C:/… to MSYS/Git Bash /c/… form before the relative-path branch).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions