Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

How to add current working directory to the PATH environment variable


I am compiling multiple executables.
And I want to be able to execute it when I am in the current working directory.
How to add the CWD to the environment PATH variable?

I have .bashrc and within it I have:
export PATH=/home/runner/Unit5Programs:$PATH

But it gets reset every time I press the "Run" button. How to make this work?

3 years ago
You are viewing a single comment. View All

Interesting way of approaching this. However, the problem is when you clone the VM the secrets are not carried forward to the clone and the clone is left in a non-working state which I think completely breaks the vision and purpose of REPLs...

1 year ago