2024-09-19 04:31:48 +00:00
|
|
|
#!/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/' )"
|
|
|
|
|
2025-03-10 20:53:00 +00:00
|
|
|
export CHEZMOI_GITHUB_ACCESS_TOKEN={{- .githubToken | quote }}
|
|
|
|
|
2024-09-19 04:31:48 +00:00
|
|
|
czcd() {
|
|
|
|
cd "$(chezmoi source-path "${@}")"
|
|
|
|
}
|
|
|
|
fi
|