aboutsummaryrefslogtreecommitdiffstats
path: root/dotfiles/bash/.bashrc
blob: 1ebdbc70289f43eac142e7888ea27114c91d443c (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
#
# ~/.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/bin:$PATH
export PATH=$HOME/.local/npm/bin:$PATH
export PATH=$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 --shell bash)"

bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\eOA": history-search-backward'
bind '"\eOB": history-search-forward'