zsh: better completion for jj

This commit is contained in:
Daniel Lundin 2023-06-06 16:31:10 +02:00
parent 4120076cb0
commit 85b4158cf6

4
.zshrc
View file

@ -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