Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Autocompletion not working on Windows with a fresh install #1171

@lolautruche

Description

@lolautruche

On Windows 10, using Git Bash, after the regular setup, the autocompletion outputs the following message:

$ platform bash: C:UsersIEUser.platformshbinplatform: command not found

It seems that the \ character is stripped in the path.
Having a look at the generated autocompletion.sh, I figured out that the path to the platform CLI is not quoted, and the \ are not doubled.

I was able to fix the issue by replacing:

RESULT=$(C:\Users\IEUser\.platformsh\bin\platform _completion --shell-type bash >/dev/null)

by:

RESULT=$("C:\Users\IEUser\.platformsh\bin\platform" _completion --shell-type bash >/dev/null)

After this change, and after sourcing ~/.bashrc, the autocompletion works.
It ouputs another error, but probably related to the Windows Bash implementation:

__ltrim_colon_completions: command not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions