首页 > 其他 > 详细

bashrc的加载

时间:2014-06-17 20:29:38      阅读:458      评论:0      收藏:0      [点我收藏+]

无意中将home下的所有文件都删除了,一些配置文件都丢了。

重新登陆后,发现无法加载bashrc。

查找后,发现问题不在于bashrc,而在与.bash_profile丢失

login shell mode 只会读取 ~/.bash_profile , ~/.bash_login , ~/.profile 里面其中一个而已。

将其他系统上的.bash_profile 拷贝来即可,或者

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

bingo

 

bashrc的加载,布布扣,bubuko.com

bashrc的加载

原文:http://www.cnblogs.com/westfly/p/3792206.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!