aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-07-13 15:40:20 +0800
committerYuqian Yang <crupest@crupest.life>2025-07-13 15:40:20 +0800
commit4bad74d2fea0e6ac9bd452cb0fc3473ec7b06746 (patch)
tree1e2538e7c4a3b6160563e3c9f123a4593ecc68c5
parent0ba30598b0bf6d87dc28ded6162f051c7db8e3fb (diff)
downloadcrupest-4bad74d2fea0e6ac9bd452cb0fc3473ec7b06746.tar.gz
crupest-4bad74d2fea0e6ac9bd452cb0fc3473ec7b06746.tar.bz2
crupest-4bad74d2fea0e6ac9bd452cb0fc3473ec7b06746.zip
config: update bash configs.
-rw-r--r--store/config/home/bash_profile4
-rw-r--r--store/config/home/bashrc6
2 files changed, 10 insertions, 0 deletions
diff --git a/store/config/home/bash_profile b/store/config/home/bash_profile
index b65f405..92375ee 100644
--- a/store/config/home/bash_profile
+++ b/store/config/home/bash_profile
@@ -1 +1,5 @@
+if [ -r ~/.profile ]; then . ~/.profile; fi
+
export PATH="$HOME/.local/bin:$PATH"
+
+case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac
diff --git a/store/config/home/bashrc b/store/config/home/bashrc
index e59b2a4..162c250 100644
--- a/store/config/home/bashrc
+++ b/store/config/home/bashrc
@@ -1,3 +1,9 @@
+[[ $- != *i* ]] && return
+
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'
+PS1='[\u@\h \W]\$ '
+
set-proxy() {
export http_proxy="http://127.0.0.1:7897"
export https_proxy="http://127.0.0.1:7897"