fix czcd bug introduced in previous commit

This commit is contained in:
Lockszmith (@VAST) 2025-04-10 11:16:55 -04:00
parent 491bc65261
commit 39b089268e
1 changed files with 3 additions and 3 deletions

View File

@ -16,9 +16,9 @@ if is_cmd 'chezmoi'; then
chezmoi() { chezmoi() {
${SET_X:-:} -x ${SET_X:-:} -x
case "$1" in case "$1" in
"cd") cd "$(chezmoi source-path "${@:2}")" ;; cd) cd "$(SET_X=':' command chezmoi source-path ${2})" ;;
"edit") ${VISUAL:-${EDITOR:-vi}} $(chezmoi source-path "${@:2}") ;; edit) ${VISUAL:-${EDITOR:-vi}} $(SET_X=':' chezmoi source-path "${@:2}") ;;
"source-path") printf '%s\n' "${@:2}" | xargs -r chezmoi source-path ;; source-path) printf '%s\n' "${@:2}" | xargs -r chezmoi source-path ;;
*) command chezmoi "${@}" ;; *) command chezmoi "${@}" ;;
esac esac
${SET_X:-:} +x ${SET_X:-:} +x