From d8238c545ac198d75ac2ea88afecb76a4d643f44 Mon Sep 17 00:00:00 2001 From: Yuhao Qing Date: Thu, 18 Dec 2025 18:07:17 +0800 Subject: [PATCH] fix --- zshrc/merlin_devbox.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc/merlin_devbox.zsh b/zshrc/merlin_devbox.zsh index e1f397e..526ed6f 100644 --- a/zshrc/merlin_devbox.zsh +++ b/zshrc/merlin_devbox.zsh @@ -1,6 +1,10 @@ +# Set cur_dir before sourcing so prep_env.sh uses the correct path +export cur_dir="/workspace/vscode" + # Patch prep_env.sh for zsh compatibility before sourcing source <(sed -e 's/^shopt -s histappend$/[[ -n "${BASH_VERSION}" ]] \&\& shopt -s histappend/' \ -e 's/\${!\([^}]*\)}/${(P)\1}/g' \ + -e 's/cur_dir="\$(cd "\$(dirname "\$0")" && pwd)"/# cur_dir already set/g' \ /workspace/mlx/../vscode/prep_env.sh) # sh -c /opt/tiger/mlx_deploy/greeting.sh @@ -13,8 +17,6 @@ if [ -f "/opt/tiger/rh2_bashrc" ]; then source /opt/tiger/rh2_bashrc fi -source /opt/tiger/mlx_deploy/userrc - . "$HOME/.cargo/env" # huggingface proxy