Change chezmoi loading order, fixes auto-complete

This commit is contained in:
Lockszmith (@kateryna) 2024-11-24 21:54:13 -05:00
parent db589b02b9
commit db7ba3de56

View file

@ -0,0 +1,11 @@
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
# shellcheck disable=SC1090
if is_cmd 'chezmoi'; then
alias cz="chezmoi "
eval "$( chezmoi completion "${SHELL##*/}" | sed -Ee 's/(complete -o default .* chezmoi)/\1 cz/' )"
czcd() {
cd "$(chezmoi source-path "${@}")"
}
fi