procs: fix completion
Procs prepend generated completion with following string if stdout of procs --completion is redirected to file: completion file is generated: ./procs.bash
This commit is contained in:
parent
6923a4041b
commit
ccf6000424
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'procs'
|
||||
pkgname=procs
|
||||
version=0.11.10
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cargo
|
||||
build_helper=qemu
|
||||
short_desc="Modern replacement for ps written in Rust"
|
||||
|
@ -14,15 +14,15 @@ checksum=e6a869722181f2122a5a223517a2d1f6505d19b8b9d46ffd59c61fb02f472403
|
|||
|
||||
post_build() {
|
||||
PROCS="target/${RUST_TARGET}/release/procs"
|
||||
vtargetrun ${PROCS} --completion bash > procs.bash
|
||||
vtargetrun ${PROCS} --completion fish > procs.fish
|
||||
vtargetrun ${PROCS} --completion zsh > procs.zsh
|
||||
vtargetrun ${PROCS} --completion bash
|
||||
vtargetrun ${PROCS} --completion fish
|
||||
vtargetrun ${PROCS} --completion zsh
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vcompletion procs.bash bash
|
||||
vcompletion procs.fish fish
|
||||
vcompletion procs.zsh zsh
|
||||
vcompletion _procs zsh
|
||||
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue