fix czcd bug introduced in previous commit
This commit is contained in:
parent
491bc65261
commit
39b089268e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue