c9 / docs.c9.io

The documentation. For Cloud9 IDE.
89 stars 60 forks source link

Is it possible to edit .bash_profile? #102

Closed bobbyroberts99 closed 9 years ago

bobbyroberts99 commented 9 years ago

Just started using Cloud9 (enjoying it) and would like to add some aliases to my bash_profile to make using git a little easier. Is this possible with a free account? I can't find the file with the terminal or a howto in the documentation. Is this possible, and if so, how do I do it? Thanks.

javruben commented 9 years ago

Yes this is possible. You can add a ~/.bash_profile yourself. Note that there is already a ~/.bashrc

bobbyroberts99 commented 9 years ago

At first I didn't find ~/.bashrc, so I created ~/.bash_profile and got some git aliases working in one of my workspaces. Unfortunately, my second workspace returns 'bash: command not found' when I try to run an alias. I'm guessing that's because each workspace is a separate vm?

Is there some way to use one .bash_profile for both workspaces or do I just need to copy and paste?

NOTE: I eventually found and added a test comment to ~/.bashrc in one workspace and after doing a 'source ~/.bashrc' in the other, the comment didn't show up.

One last question, is it OK to have the aliases in the profile and leave bashrc alone, or should I add the aliases to the end of bashrc instead and get rid of the bash_profile? What's best practice?

Being a bash noob, I appreciate your help and patience. Thanks.