fix bug in czedext introduced by latest chezmoi function changes
This commit is contained in:
parent
af74c92abb
commit
c77e0d9bec
|
@ -25,7 +25,7 @@ if is_cmd 'chezmoi'; then
|
||||||
}
|
}
|
||||||
czcd() { chezmoi cd "${@}"; }
|
czcd() { chezmoi cd "${@}"; }
|
||||||
czedext() {
|
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}"
|
CZ_EXT="${CZ_EXT:-$(chezmoi source-path "${@}")/.chezmoiexternal.yaml.tmpl}"
|
||||||
"${VISUAL:-${EDITOR:-vi}}" "${CZ_EXT}"
|
"${VISUAL:-${EDITOR:-vi}}" "${CZ_EXT}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue