tealdeer: add shell completions (#19731)

This commit is contained in:
Filipe Nascimento 2024-04-10 14:59:24 -03:00 committed by GitHub
parent 5589396abc
commit 1b3f9a202f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0, MIT"
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE, LICENSE-MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.6.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=git+https://github.com/dbrgn/tealdeer
TERMUX_PKG_BUILD_IN_SRC=true
@ -14,4 +15,8 @@ termux_step_make() {
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/tldr
install -Dm644 completion/zsh_tealdeer "$TERMUX_PREFIX/share/zsh/site-functions/_tldr"
install -Dm644 completion/bash_tealdeer "$TERMUX_PREFIX/share/bash-completion/completions/tldr"
install -Dm644 completion/fish_tealdeer "$TERMUX_PREFIX/share/fish/vendor_completions.d/tldr.fish"
}