blob: c34e43a714daeac9865cfab7ca645bcb46483dfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#
# ~/.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)"
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\eOA": history-search-backward'
bind '"\eOB": history-search-forward'
# # pnpm
# export PNPM_HOME='/home/shu/.local/share/pnpm'
# case ":$PATH:" in
# ":$PNPM_HOME/bin:"*) ;;
# *) export PATH="$PNPM_HOME/bin:$PATH" ;;
# esac
# # pnpm end
|