output
linux .bash_profile .bashrc 区别
input
鸟哥-鸟哥的Linux私房菜 基础学习篇 3ed|323
algo
cat .bash_profile
# .bash_profile
echo "bash_profile"
echo "in bash_profile"
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
.bash_profile 会引用 .bashrc