本文最后更新于2024-12-22,距今已有 469 天,若文章内容或图片链接失效,请留言反馈。
表现形式,原本终端中的用户名显示为绿色,然后不知道怎么回事变成了白色,所有快捷键都失效了,并且source bashrc之后没有反应。
恢复默认profile
cp ~/.profile profile # 备份当前的profile
cp /etc/skel/.profile ~/ # 复制系统默认的profile恢复默认的bashrc
cp ~/.bashrc bashrc
cp /etc/skel/.bashrc ~/
source ~./bashrc现在应该就可以变成绿色了,然后再把备份的文件中修改过的内容复制到默认的.profile 和.bashrc中即可
Ubuntu 终端用户变白 source命令无效
https://blog.songshiyu.cn/archives/ubuntu-zhong-duan-yong-hu-bian-bai-sourceming-ling-wu-xiao
评论