command line - Using ZSH for storing environment variable -


it suggested me utilize zsh storing environment variables project i'm working on. when set them export var_name='secret_key' on command line works, not persist beyond shell session.

reading around sounds should adding them in .zshenv file. file not appear exist me. not sure how create file in $path. contrary approach told use .zshrc file. though when add env vars in there export var_name='secret_key' not picked application when ran syntax command line.

i'm kinda lost in best approach this, , how done.

couple resources i've been reading though:

http://zsh.sourceforge.net/guide/zshguide02.html

where place $path variable assertions in zsh?

closed down , walked away day. came morning , worked. c'est la vie. not sure killed server few times trying figure out, working now. still not sure if saving env vars in .zshrc file best practice. or if location more ideal.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -