GithubHelp home page GithubHelp logo

Comments (2)

javruben avatar javruben commented on June 1, 2024

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

from docs.c9.io.

bobbyroberts99 avatar bobbyroberts99 commented on June 1, 2024

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.

from docs.c9.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.