Ask coding questions

← Back to all posts
How to add to PATH variable
ashokb

I would like to add the current working directory to the environment PATH variable

I have something like this in my .bashrc file

export PATH=/home/runner/Unit5Programs:$PATH

But it gets reset every time I run <Ctrl> <Enter>.

What is the best way to do this?

Voters
SkywayDeveloper
Coder100
ashokb
Comments
hotnewtop
watadarkstar

Did you ever figure this out?

ashokb