From fe9a6b38f888a51c7b608e734b04e834d7e60afd Mon Sep 17 00:00:00 2001 From: js0ny Date: Mon, 12 Aug 2024 16:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=A7:=20Update=20Linux=20Shell=20Config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 1 + linux/.bashrc | 18 +++++++++++++++++- linux/.zshrc | 18 +++++++++++++++++- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index 1cf6c9c..d70a609 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ proxy=http://127.0.0.1:7890 https-proxy=http://127.0.0.1:7890 +registry=https://registry.npmmirror.com diff --git a/linux/.bashrc b/linux/.bashrc index 65d2b32..3ded045 100644 --- a/linux/.bashrc +++ b/linux/.bashrc @@ -165,4 +165,20 @@ wsp(){ doku() { cd ~/doku/ && ls } -source ~/.private.env.sh \ No newline at end of file +source ~/.private.env.sheval "$(/bin/brew shellenv)" +eval "$(/bin/brew shellenv)" + +# >>> juliaup initialize >>> + +# !! Contents within this block are managed by juliaup !! + +case ":$PATH:" in + *:/home/js0ny/.juliaup/bin:*) + ;; + + *) + export PATH=/home/js0ny/.juliaup/bin${PATH:+:${PATH}} + ;; +esac + +# <<< juliaup initialize <<< diff --git a/linux/.zshrc b/linux/.zshrc index 648d4e3..e9f2eaa 100644 --- a/linux/.zshrc +++ b/linux/.zshrc @@ -164,4 +164,20 @@ if [[ -x /usr/lib/command-not-found ]] ; then /usr/lib/command-not-found -- ${1+"$1"} && : } fi -fi \ No newline at end of file +fi + +# LinuxBrew # + +eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +# Set PATH, MANPATH, etc., for Homebrew. +export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git" +export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git" + +# >>> juliaup initialize >>> + +# !! Contents within this block are managed by juliaup !! + +path=('/home/js0ny/.juliaup/bin' $path) +export PATH + +# <<< juliaup initialize <<<