etauker / insomnia-plugin-system-env

Insomnia plugin for accessing system environment variables
5 stars 2 forks source link

Insomnia is not able to recognize mac's environment variables #1

Closed nickchow0112 closed 4 years ago

nickchow0112 commented 4 years ago

Hi, I added some env variables on my mac, but the plugin is not able to pick up these variables.

Screen Shot 2020-03-31 at 1 51 11 PM Screen Shot 2020-03-31 at 1 51 27 PM
etauker commented 4 years ago

Hi @nickchow0112, How did you open insomnia? The insomnia instance needs to be opened from the same terminal in which you exported the token, for example:

STAGING_API_TOKEN=3fc345d2-9dd8-48e8-a178-3c91c867cc41 /Applications/Insomnia.app/Contents/MacOS/Insomnia

I also updated the example in the readme.

nickchow0112 commented 4 years ago

Hi @etauker, I actually tried example 1 instead of 2. But it wasn't able to pick up the environment variables.I just tried your second method and it works! thanks!