diff --git a/bash_guofang b/bash_guofang index 9b6c958..6f0dd22 100644 --- a/bash_guofang +++ b/bash_guofang @@ -1,5 +1,7 @@ alias claude='env -u TERM_PROGRAM https_proxy=http://localhost:3128 claude' alias codex="all_proxy=http://localhost:3128 codex --dangerously-bypass-approvals-and-sandbox" alias hf="env -u HF_HUB_OFFLINE all_proxy=http://localhost:3128 hf" -export HF_HUB_CACHE=/data/guofang/.cache/huggingface/hub +if [ -d /data ]; then + export HF_HUB_CACHE=/data/guofang/.cache/huggingface/hub +fi export HF_HUB_OFFLINE=1