.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

posta 5 anni fa500 visualizzazioni
2 Risposte
1
Risposta accettata

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
con risposta 5 anni fa
0

Yep, that worked! Thanks.

con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande