.bashrc file not loaded in AWS Cloud 9

0

The issue is I lost my terminal prompt colors and formatting. I prefer the old c9.io formatting. I can see the formatting is in there in the new AWS c9 .bashrc file, but the file is not loading.

It appears to be because .bash_profile loads instead... which I think is meant to load some Ruby scripts. If I rename/remove the .bash_profile file then the .bashrc file loads and all is well. But I am sure that's not advised and I'm at the limit of my knowledge here. Any suggestions for how how to make sure the .bashrc file loads?

Edited by: DanOlson on Apr 22, 2019 12:46 PM

已提问 5 年前500 查看次数
2 回答
1
已接受的回答

Hello Dan!

I assume you're using Ubuntu environment, am I right?
If so, you can add following line to .bash_profile

[[ -f ~/.bashrc ]] && source ~/.bashrc
profile pictureAWS
已回答 5 年前
0

Yep, that worked! Thanks.

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则