From 572963baf39099cf78eda91c4f74478079dc420e Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 12 Dec 2022 21:43:30 +0800 Subject: [PATCH] fix: npmmirror --- cli/fish/config.fish | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cli/fish/config.fish b/cli/fish/config.fish index dbd1195..5bdeec5 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -17,8 +17,13 @@ if status is-interactive #set -gx LESS "-SRXF" set -gx LESS "-SRX" # for nnn help to how, remove F - # === nvm configuration - set -gx nvm_mirror http://npm.taobao.org/mirrors/node + # === nvm/node configuration + set -gx nvm_data ~/.local/nvm + set -gx nvm_mirror 'https://cdn.npmmirror.com/binaries/node' + alias cnpm="npm --registry=https://registry.npmmirror.com \ + --cache=$HOME/.npm/.cache/cnpm \ + --disturl=https://npmmirror.com/mirrors/node \ + --userconfig=$HOME/.cnpmrc" # === `ls` configuration # change OTHER-WRITABLE color for `ls` command