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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -