fix bug in czedext introduced by latest chezmoi function changes

This commit is contained in:
Lockszmith (Mac@VAST) 2025-04-10 12:27:16 -04:00
parent af74c92abb
commit c77e0d9bec
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if is_cmd 'chezmoi'; then
}
czcd() { chezmoi cd "${@}"; }
czedext() {
local CZ_EXT="$(find $(chezmoi source-path) -mindepth 1 -maxdepth 1 -name '.chezmoiexternal.*')"
local CZ_EXT="$(find $(command chezmoi source-path) -mindepth 1 -maxdepth 1 -name '.chezmoiexternal.*')"
CZ_EXT="${CZ_EXT:-$(chezmoi source-path "${@}")/.chezmoiexternal.yaml.tmpl}"
"${VISUAL:-${EDITOR:-vi}}" "${CZ_EXT}"
}