瀏覽代碼

Fix yarn with a HOME dir wrapper

Emmanuel Bouthenot 6 年之前
父節點
當前提交
e66f3eeb32
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      zsh/zshrc

+ 2 - 0
zsh/zshrc

@@ -278,6 +278,8 @@ fi
 export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/config"
 export NPM_CONFIG_CACHE="${XDG_CACHE_HOME}/npm"
 export NPM_CONFIG_TMP="${XDG_RUNTIME_DIR}/npm"
+# yarn is not yet able to use XDG-* directories, workaround:
+alias yarn="HOME=${TMPDIR} yarn"
 
 # Sourcing ~/.zshrc