so I have create setup.sh
file like this :
#!/bin/bash
export SP_TWITTER_KEY=adsfad
export SP_TWITTER_SECRET=aadsfadsf
export SP_TWITTER_ACCESSTOKEN=asdfasdfa
export SP_TWITTER_ACCESSSECRET=asdfasdfas
export mongo_connection=localhost
and after that I run this command in order to turn the file to be executable :
$ chmod +x setup.sh
finally execute the file so that all my env varible are exported. I have tried several ways like this :
$ . /setup.sh
$ .setup.sh
$ bash setup.sh
But none of them are working, because I check again the variable like mongo_connection
and others are still empty. Any idea what's wrong or am I missing something?
NOTE : I'm using tmux to run my shell terminal
setup.sh
in another shell on tmux. It doesnt export on the other shell – Gujarat Santana May 21 '17 at 09:09.bashrc
. – Ravexina May 21 '17 at 09:10