aboutsummaryrefslogtreecommitdiffstats
path: root/dotfiles/bash/.bashrc
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-10-25 23:46:15 +0800
committershu <nvcsadjkojf@outlook.com>2026-10-25 23:46:15 +0800
commitafa43622a2b0d6322f5ade9fc8231e5540a96736 (patch)
tree4a31be96ae639553a6c2493ee231b093b7b8b430 /dotfiles/bash/.bashrc
使用 stow + 脚本的形式维护系统基础
Diffstat (limited to 'dotfiles/bash/.bashrc')
-rw-r--r--dotfiles/bash/.bashrc26
1 files changed, 26 insertions, 0 deletions
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