aboutsummaryrefslogtreecommitdiffstats
path: root/dotfiles/bash
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
使用 stow + 脚本的形式维护系统基础
Diffstat (limited to 'dotfiles/bash')
-rw-r--r--dotfiles/bash/.bash_logout3
-rw-r--r--dotfiles/bash/.bash_profile5
-rw-r--r--dotfiles/bash/.bashrc26
3 files changed, 34 insertions, 0 deletions
diff --git a/dotfiles/bash/.bash_logout b/dotfiles/bash/.bash_logout
new file mode 100644
index 0000000..0e4e4f1
--- /dev/null
+++ b/dotfiles/bash/.bash_logout
@@ -0,0 +1,3 @@
+#
+# ~/.bash_logout
+#
diff --git a/dotfiles/bash/.bash_profile b/dotfiles/bash/.bash_profile
new file mode 100644
index 0000000..5545f00
--- /dev/null
+++ b/dotfiles/bash/.bash_profile
@@ -0,0 +1,5 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.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