Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 106

How to set environment variables in fish shell

$
0
0

Can someone please tell me what's the correct way to set a bunch of environment variables in the fish shell?

In my ~/.config/fish/config.fish file, I have a function to setup my environment variables like so:

function setTESTENV      set -x BROKER_IP '10.14.16.216'      set -x USERNAME 'foo'      set -x USERPASS 'bar'end 

When I type from the command prompt setTESTENV and do a env in the command line, I don't see this information.


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>