vi ~ /.bash_profile
添加
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ] ; then
source ~/.bashrc
fi
这篇博客介绍了如何在Bash环境中通过修改~/.bash_profile来加载.bashrc文件,确保别名和函数的正确获取。通过在.bash_profile中添加 sourcing .bashrc 的行,可以实现配置的统一管理。
vi ~ /.bash_profile
添加
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ] ; then
source ~/.bashrc
fi
1746
2037