config(zsh): shell completion for delta and just

main
sudo pacman -Syu 2024-08-30 10:28:37 +07:00
parent 22445ae1f7
commit bce05d0298
1 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,12 @@ if command -v kitten &>/dev/null; then
alias kssh="kitten ssh"
fi
# https://github.com/dandavison/delta
if command -v delta &>/dev/null; then
alias da="delta"
eval "$(delta --generate-completion zsh)"
fi
# https://github.com/wilfred/difftastic
if command -v difft &>/dev/null; then
export DFT_DISPLAY=inline
@ -139,6 +145,7 @@ fi
# https://github.com/casey/just
if command -v just &>/dev/null; then
alias jst="just"
eval "$(just --completions zsh)"
fi
# https://github.com/crate-ci/typos