A script that adds bash completion for pgBackRest (https://pgbackrest.org).
-
Simple use:
source /path/to/pgbackrest-completion.sh -
For permanent use:
Copy
pgbackrest-completion.shin your bash_completion.d folder (/etc/bash_completion.d,/usr/local/etc/bash_completion.dor~/bash_completion.d).Or load
pgbackrest-completion.shfile in your~/.bashrcor~/.profile:echo "source /path/to/pgbackrest-completion.sh" >> ~/.bashrc
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 |
