Well I know that I can print all environment variables but I have a hard time to work with them for the past year I always edit my .bashrc or .zshrc file and add in the end the environment variables like this
export envName=someName
but is this the best scenario?
where actually all the values from
printenv
coming from and where is the best location to store my environment variables like java/go/ etc.