Open 12rambau opened 1 year ago
As a frequent Sepal user, I back up the need for being able to use environment variables.
So far, it looks I have a denied permission to add environment variables to the .bashrc file. When I try to edit the .bashrc file in the shell text editor it also mentions: 'File is unwriteable'. See example code here below.
sepal-user@xxxxxxxxx:~$ echo "export DATACUBE_LOCATION='/path/to/datacube'" >> ~/.bashrc
-bash: /home/sepal-user/.bashrc: Permission denied
In the test suit of
sepal-ui
I need to set some parameters in the environment such as a earthengine token and planet credentials. So far we were creating a.bash_profile
file to do this.Recently I was scanning the hidden files of the new home folder and found a
.profile
one:meaning that if .bash_profile exist then the bins are not correctly instanciated (and the coloring and other prettifying stuff) right ?
If I want to permanently add extra environment variable instead of eporting them all the time, should I copy/paste this content in my .bash_profile (with the risk of missing any update) or is there another way ?