https://github.com/mdeweerd/pre-commit-completion
bash-completion for pre-commit
https://github.com/mdeweerd/pre-commit-completion
autocomplete autocompletion bash-completion pre-commit
Last synced: 3 months ago
JSON representation
bash-completion for pre-commit
- Host: GitHub
- URL: https://github.com/mdeweerd/pre-commit-completion
- Owner: mdeweerd
- License: gpl-3.0
- Created: 2024-02-06T21:09:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-30T13:46:14.000Z (6 months ago)
- Last Synced: 2025-02-10T02:14:20.362Z (5 months ago)
- Topics: autocomplete, autocompletion, bash-completion, pre-commit
- Language: Shell
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Bash completion for pre-commit
## Setup
Get `pre-commit.bash`.
### Source it in your shell
Source it into your shell (`.bashrc` or `.bash_profile`):
```bash
source path/to/pre-commit.bash
# or
. path/to/pre-commit-completion.bash`
```### Automatically source it
`install.sh` will copy the bash completion script to the appropriate directory in your home.
- The path was taken from `declare -f __load_completion` - it could give you another hint.
It is loaded through the `_completion_loader()` function.
- Global installation may be possible by adding the files to one of these paths:
- `/usr/local/share/bash_completion/completions`
- `/usr/share/bash_completion/completions`## Debugging
Debugging can be facilitated by calling `set -x`.\
To disable the trace, you can do the opposite: `set +x`.## LICENSE
GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007