From 6c2337fbe906544d770074dd3d4367e8a61147f9 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 11 Dec 2024 15:59:25 +0100 Subject: [PATCH] jujutsu: enable dynamic command completions. These respect aliases etc. --- srcpkgs/jujutsu/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/jujutsu/template b/srcpkgs/jujutsu/template index de8bd72c63b..eb686117290 100644 --- a/srcpkgs/jujutsu/template +++ b/srcpkgs/jujutsu/template @@ -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 }