.bash_profile does not display echo information after update

3.2k views Asked by At

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?

2

There are 2 answers

0
dwaskowski On

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.

1
William Miguel Avila Merdano On

Go to Terminal > Preferences > replace Command complete path by "/bin/bash" enter image description here