How to set an environment variable on OSX Yosemite? -


i trying set global/system variable in computer, using yosemite.

i opened ~/.profile (that default profile file configuration) , , added this

setenv var.property somevalue 

but didnt work,

neither way

export var.property = somevalue 

everytime echo $var.property result "property" think "." may interfering this. need have format, unfortunately, not working.

any idea how this?

you different environment based on if start via command line vs double clicking ... if start command line should whatever in env , if start clicking whatever in launchtl's env... change use

launchctl setenv dog cat 

edit:

it seems though can't have env var key has period in it... works fine in csh:

setenv var.property somevalue 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -