Open ~/.bashrc
file.
Create 2 functions to load and unload environment variables:
|
|
Now, you can use env_load
and env_unload
to manage environment variables.
For example, to manage CUDA environment, add these lines to ~/.bashrc
:
|
|
Open ~/.bashrc
file.
Create 2 functions to load and unload environment variables:
|
|
Now, you can use env_load
and env_unload
to manage environment variables.
For example, to manage CUDA environment, add these lines to ~/.bashrc
:
|
|