feat: cnpm alias

This commit is contained in:
Klesh Wong 2021-09-28 21:47:40 +08:00
parent 596cef6fab
commit 6efc11c682

View File

@ -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 \