Metadata-Version: 2.1
Name: xontrib-bash-completions-dirs
Version: 0.1.6
Summary: Xontrib Bash Completions Dirs
Project-URL: Code, https://codeberg.org/taconi/xontrib-bash-completions-dirs
Project-URL: Issue tracker, https://codeberg.org/taconi/xontrib-bash-completions-dirs/issues
Author-email: taconi <igor.taconi@protonmail.com>
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Shells
Classifier: Topic :: System :: System Shells
Classifier: Topic :: Terminals
Requires-Python: >=3.8
Requires-Dist: xonsh>=0.13.1
Description-Content-Type: text/markdown

# Xontrib Bash Completions Dirs

[![License: GPL v3](https://img.shields.io/pypi/l/xontrib-bash-completions-dirs?label=License&color=%234B78E6)](https://codeberg.org/taconi/xontrib-bash-completions-dirs/raw/branch/main/LICENSE)
[![PyPI version](https://img.shields.io/pypi/v/xontrib-bash-completions-dirs.svg?logo=pypi&label=PyPI&color=%23FA9BFA)](https://pypi.org/project/xontrib-bash-completions-dirs/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/xontrib-bash-completions-dirs.svg?logo=python&label=Python&color=%234B78E6)](https://pypi.python.org/pypi/xontrib-bash-completions-dirs/)
[![Downloads](https://img.shields.io/pypi/dm/xontrib-bash-completions-dirs?logo=pypi&label=Downloads&color=%2373DC8C)](https://pypi.org/project/xontrib-bash-completions-dirs/)

Autocomplete loading from directories.

## Installation

To install use xpip:

```sh
xpip install xontrib-bash-completions-dirs
```

or

```sh
xpip install -U git+https://codeberg.org/taconi/xontrib-bash-completions-dirs
```

## Usage

```sh
xontrib load bash_completions_dirs
 ```

Add the variable `BASH_COMPLETIONS_DIRS` (which must be an iterable of strings) with the paths of the directories that contain the autocomplete files.

For example:

```py
$BASH_COMPLETIONS_DIRS = ['/usr/share/bash-completion/completions']
```

### Note: The file name must be the same as the command to be used in autocomplete

For example, the file `/usr/share/bash-completion/completions/git` will be used to autocomplete the `git` command
