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/.bash_logout | 3 +++ dotfiles/bash/.bash_profile | 5 +++++ dotfiles/bash/.bashrc | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 dotfiles/bash/.bash_logout create mode 100644 dotfiles/bash/.bash_profile create mode 100644 dotfiles/bash/.bashrc (limited to 'dotfiles/bash') 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 -- cgit v1.2.3