fix bug in czedext introduced by latest chezmoi function changes
This commit is contained in:
parent
af74c92abb
commit
c77e0d9bec
_src.posix/private_dot_config/sz.env
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue