.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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南