FWIW in Linux I use `/etc/environment`.
I have this line that I have appended to all three of /etc/profile /usr/share/skel/dot.profile $HOME/.shrc:
	
	
	
		
And using a Vagrant box of FreeBSD 14 I can see `FOO` in `env` or just by:
	
	
	
		
However when running it the usual way with `vagrant -c`:
	
	
	
		
(/etc/profile works for the earlier examples the other files I attempted to work with after running into this issue)
How do I set global variables on FreeBSD? - Happy to execute commands and modify multiple files.
Thanks
				
			I have this line that I have appended to all three of /etc/profile /usr/share/skel/dot.profile $HOME/.shrc:
		Bash:
	
	export FOO='bar'And using a Vagrant box of FreeBSD 14 I can see `FOO` in `env` or just by:
		Bash:
	
	$ vagrant ssh
$ printf 'FOO = "%s"\n' "${FOO}"
FOO = "bar"
$ exit
$ vagrant ssh <<< 'printf "FOO = %s\n" "${FOO}"'
FOO = barHowever when running it the usual way with `vagrant -c`:
		Bash:
	
	$ vagrant ssh -c 'printf "FOO=%s\n" "${FOO}"'
FOO=(/etc/profile works for the earlier examples the other files I attempted to work with after running into this issue)
How do I set global variables on FreeBSD? - Happy to execute commands and modify multiple files.
Thanks
 
			     
 
		