bat: use the first found file for completions
somehow it is possible to end up with 2 bat-$hash dir that contain the completions
This commit is contained in:
parent
e5a326e32a
commit
b6447d74bc
1 changed files with 3 additions and 3 deletions
|
@ -22,11 +22,11 @@ post_install() {
|
|||
vlicense LICENSE-MIT
|
||||
vdoc README.md
|
||||
# The manual page is hidden somewhere deep in the build tree
|
||||
manpage=$(find ${wrksrc}/target -name bat.1)
|
||||
manpage=$(find ${wrksrc}/target -name bat.1 | head -n1)
|
||||
vman ${manpage}
|
||||
# Completions are also hidden somewhere deep in the build tree
|
||||
fish_completion=$(find ${wrksrc}/target -name bat.fish)
|
||||
fish_completion=$(find ${wrksrc}/target -name bat.fish | head -n1)
|
||||
vcompletion ${fish_completion} fish
|
||||
zsh_completion=$(find ${wrksrc}/target -name bat.zsh)
|
||||
zsh_completion=$(find ${wrksrc}/target -name bat.zsh | head -n1)
|
||||
vcompletion ${zsh_completion} zsh
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue