An open API service indexing awesome lists of open source software.

https://github.com/woblerr/pgbackrest-bash-completion

Bash completion for pgBackRest.
https://github.com/woblerr/pgbackrest-bash-completion

bash-completion pgbackrest postgresql

Last synced: about 1 month ago
JSON representation

Bash completion for pgBackRest.

Awesome Lists containing this project

README

          

# pgBackRest Bash Completion
A script that adds bash completion for pgBackRest (https://pgbackrest.org).

## Usage

* Simple use:
```bash
source /path/to/pgbackrest-completion.sh
```

* For permanent use:

Copy `pgbackrest-completion.sh` in your bash_completion.d folder (`/etc/bash_completion.d`, `/usr/local/etc/bash_completion.d` or `~/bash_completion.d`).

Or load `pgbackrest-completion.sh` file in your `~/.bashrc` or `~/.profile`:

```bash
echo "source /path/to/pgbackrest-completion.sh" >> ~/.bashrc
```

## Compatibility with pgBackRest versions

Depending on the pgBackRest version, it is recommended to use different versions of the completion script.

| Script version | pgBackRest version |
|----------------|--------------------|
| v0.11 | >= v2.56.0 |
| v0.10 | < v2.56.0 |

## Simple demo

![demo](../images/demo.gif?raw=true)