Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

How does bash-completion even get sourced without PS1? #11

@t184256

Description

@t184256

bash-completion has a guard condition so it won't be sourced without PS1 being set

https://github.com/scop/bash-completion/blob/6009de8534cd24b71d0bfda479823abcc640e4b1/bash_completion.sh.in#L2

Indeed, on my system it doesn't get sourced, while adding PS1=something before {source} fixes that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions