From 6efc11c6821311fa555343da7fa0dff06dad8c86 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 28 Sep 2021 21:47:40 +0800 Subject: [PATCH] feat: cnpm alias --- cli/fish/config.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/fish/config.fish b/cli/fish/config.fish index fdb6ac5..d12d8e7 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -51,6 +51,10 @@ if status is-interactive alias issh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"' alias iscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"' alias dt='date "+%Y%m%d-%H%M%S"' + alias cnpm="npm --registry=https://registry.npmmirror.com \ + --cache=$HOME/.npm/.cache/cnpm \ + --disturl=https://npmmirror.com/dist \ + --userconfig=$HOME/.cnpmrc" # === PATH and file sourcing append_paths ~/go/bin \