From af383940911fc3192beb6e0fd2566c52bd1ea9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Hu=E1=BB=B3nh=20Anh=20Khoa?= <113995598+anhkhoakz@users.noreply.github.com> Date: Wed, 30 Jul 2025 23:34:13 +0700 Subject: [PATCH] Using builtin cd (#2109) Using builtin cd to prevent zoxide --cmd=cd conflict cause: zoxide: no match found --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index 099cab0..edd2838 100644 --- a/init.zsh +++ b/init.zsh @@ -29,7 +29,7 @@ function zprezto-update { printf "running\ncd '%s' and then\n'git pull' " "${ZPREZTODIR}" printf "to manually pull and possibly merge in changes\n" } - cd -q -- "${ZPREZTODIR}" || return 7 + builtin cd -q -- "${ZPREZTODIR}" || return 7 local orig_branch="$(git symbolic-ref HEAD 2> /dev/null | cut -d '/' -f 3)" if [[ "$orig_branch" == "master" ]]; then git fetch || return "$?"