无意中将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

 

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-11-02
  • 2021-05-23
  • 2022-01-17
  • 2021-08-14
  • 2021-08-30
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-01-25
  • 2021-08-11
  • 2022-12-23
  • 2021-09-03
  • 2021-08-06
  • 2021-06-11
相关资源
相似解决方案