From 85b4158cf676641c009e89bacb877b53d3c12b65 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Tue, 6 Jun 2023 16:31:10 +0200 Subject: [PATCH] zsh: better completion for jj --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 722805f..77ac0ca 100644 --- a/.zshrc +++ b/.zshrc @@ -219,7 +219,9 @@ if [ ! -f "${fpath[1]}/_sl" ]; then fi ## jujutsu -source <(jj util completion --zsh) +if [ ! -f "${fpath[1]}/_jj" ]; then + command -v jj >/dev/null 2>&1 && jj util completion --zsh > "${fpath[1]}/_jj" +fi ## Tekton cli if [ ! -f "${fpath[1]}/_tkn" ]; then