'.bash_profile does not display echo information after update
I am setting up environment variables, and after saving in .bash_profile
, I gave this command:
echo "$SENDGRID_USERNAME"
After doing this, bash
returned a blank line, and went back to the prompt on the following line.
This made me wonder that something is there, but maybe bash is not showing it. Or is there something else involved?
Also, do I need to have a path variable in the .bash_profile
? If I do, what should it be?
Solution 1:[1]
After store new stuff into .bash_profile, you should run
source .bash_profile
after that changes will work, or you can login once more on your account.
Solution 2:[2]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | dwaskowski |
Solution 2 | William Miguel Avila Merdano |