mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Move shell completion scripts to their own directory (#259)
* Move shell completion scripts to their own directory * Remove completion scripts from published Cargo package
This commit is contained in:
parent
3b4451f8fa
commit
2177297871
6 changed files with 8 additions and 5 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
run: |
|
||||
source ./scripts/upload-asset.sh
|
||||
# Upload: <token> <repo> <tag> <file> <name>
|
||||
upload_release_file ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${GITHUB_REF#refs/*/} ${{ matrix.target }}_tealdeer completions_${{ matrix.target }}
|
||||
upload_release_file ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${GITHUB_REF#refs/*/} completion/${{ matrix.target }}_tealdeer completions_${{ matrix.target }}
|
||||
|
||||
upload-license:
|
||||
needs:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ readme = "README.md"
|
|||
repository = "https://github.com/dbrgn/tealdeer/"
|
||||
documentation = "https://dbrgn.github.io/tealdeer/"
|
||||
version = "1.5.0"
|
||||
include = ["/src/**/*", "/tests/**/*", "/Cargo.toml", "/README.md", "/LICENSE-*", "/screenshot.png", "/bash_tealdeer", "/fish_tealdeer"]
|
||||
include = ["/src/**/*", "/tests/**/*", "/Cargo.toml", "/README.md", "/LICENSE-*", "/screenshot.png"]
|
||||
edition = "2018"
|
||||
|
||||
[[bin]]
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ To enable the log output, set the `RUST_LOG` env variable:
|
|||
|
||||
## Autocompletion
|
||||
|
||||
- *Bash*: copy `bash_tealdeer` to `/usr/share/bash-completion/completions/tldr`
|
||||
- *Fish*: copy `fish_tealdeer` to `~/.config/fish/completions/tldr.fish`
|
||||
- *Zsh*: copy `zsh_tealdeer` to `/usr/share/zsh/site-functions/_tldr`
|
||||
Shell completion scripts are located in the folder `completion`.
|
||||
Just copy them to their designated location:
|
||||
|
||||
- *Bash*: `cp completion/bash_tealdeer /usr/share/bash-completion/completions/tldr`
|
||||
- *Fish*: `cp completion/fish_tealdeer ~/.config/fish/completions/tldr.fish`
|
||||
- *Zsh*: `cp completion/zsh_tealdeer /usr/share/zsh/site-functions/_tldr`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue