jujutsu: enable dynamic command completions.
These respect aliases etc.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'jujutsu'
|
# Template file for 'jujutsu'
|
||||||
pkgname=jujutsu
|
pkgname=jujutsu
|
||||||
version=0.24.0
|
version=0.24.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
build_helper=qemu
|
build_helper=qemu
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
@@ -23,7 +23,8 @@ do_install() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
for _shell in bash fish zsh; do
|
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
|
vcompletion jj.${_shell} ${_shell} jj
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user