1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 22:31:03 +02:00

feat: add shell completions

Auto-generated with clap.
This commit is contained in:
Donovan Glover 2024-07-30 14:01:49 -04:00 committed by Jake Stanger
parent df55cdfa9f
commit 4381fd505d
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
6 changed files with 100 additions and 3 deletions

View file

@ -117,6 +117,26 @@ cargo build --release --no-default-features \
| **Other** | |
| schema | Enables JSON schema support and the CLI `--print-schema` flag. |
## Shell completions
Compiling Ironbar will produce shell completions for bash, zsh and fish; these can be found in `target/completions`.
You can install these as follows:
Bash:
```shell
install -Dm644 completions/ironbar.bash /usr/share/bash-completion/completions/ironbar
```
Zsh:
```shell
install -Dm644 completions/_ironbar /usr/share/zsh/site-functions/_ironbar
```
Fish:
```shell
install -Dm644 completions/ironbar.fish /usr/share/fish/vendor_completions.d/ironbar.fish
```
## Speeding up compiling