Skip to content

User-space location for completion files should be used, if system-wide locations are not accesible #10

@con-f-use

Description

@con-f-use

Currently:

Creating completion files with docopt-completion fails, when the user doesn't have the appropriate permissions.

confus@confusion:~$ docopt-completion ./decorator.py
Skipping file /usr/share/zsh/functions/Completion/_decorator.py, no permissions
Skipping file /etc/bash_completion.d/decorator.py.sh, no permissions

Proposed:

The program should try to place completion files in the user space directories (e.g. $HOME/.bash_completion.d for bash), when the above permisson error is detected or implement a --user-space option to specify/auto-detect these directories.

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