Change chezmoi loading order, fixes auto-complete
This commit is contained in:
parent
db589b02b9
commit
db7ba3de56
1 changed files with 0 additions and 0 deletions
11
_home/private_dot_config/sz.env/zzz_chezmoi.env
Normal file
11
_home/private_dot_config/sz.env/zzz_chezmoi.env
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue