From afa43622a2b0d6322f5ade9fc8231e5540a96736 Mon Sep 17 00:00:00 2001 From: shu Date: Sun, 25 Oct 2026 23:46:15 +0800 Subject: 使用 stow + 脚本的形式维护系统基础 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotfiles/bash/.bashrc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dotfiles/bash/.bashrc (limited to 'dotfiles/bash/.bashrc') diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc new file mode 100644 index 0000000..0826f83 --- /dev/null +++ b/dotfiles/bash/.bashrc @@ -0,0 +1,26 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +PS1='[\u@\h \W]\$ ' + +export PATH=$HOME/.local/npm/bin:$HOME/.local/share/pnpm/bin:$PATH + +export FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ +export RUSTUP_UPDATE_ROOT=https://mirror.nju.edu.cn/rustup/rustup +export RUSTUP_DIST_SERVER=https://mirror.nju.edu.cn/rustup + +eval "$(fnm env --use-on-cd)" + +# # pnpm +# export PNPM_HOME='/home/shu/.local/share/pnpm' +# case ":$PATH:" in +# ":$PNPM_HOME/bin:"*) ;; +# *) export PATH="$PNPM_HOME/bin:$PATH" ;; +# esac +# # pnpm end -- cgit v1.2.3