jujutsu: enable dynamic command completions.
These respect aliases etc.
This commit is contained in:
parent
6a68bfc16b
commit
6c2337fbe9
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'jujutsu'
|
||||
pkgname=jujutsu
|
||||
version=0.24.0
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cargo
|
||||
build_helper=qemu
|
||||
hostmakedepends="pkg-config"
|
||||
|
@ -23,7 +23,8 @@ do_install() {
|
|||
done
|
||||
|
||||
for _shell in bash fish zsh; do
|
||||
vtargetrun ${DESTDIR}/usr/bin/jj util completion ${_shell} > jj.${_shell}
|
||||
COMPLETE=${_shell} vtargetrun ${DESTDIR}/usr/bin/jj > jj.${_shell}
|
||||
sed -i -e "s:$DESTDIR::g" jj.${_shell}
|
||||
vcompletion jj.${_shell} ${_shell} jj
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue