Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Copy variables from command line to GUI environments' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Copy variables from command line to GUI environments
Authored by: Chiwo on Dec 06, '04 07:07:00AM

I just have this in my .profile. The only variable I want exported it P4CONFIG, but you can add others.


# Export my P4CONFIG to the Mac OS X environment so that BBEdit can see it.
# See <http://developer.apple.com/qa/qa2001/qa1067.html>.

mkdir -p $HOME/.MacOSX
cat > $HOME/.MacOSX/environment.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>P4CONFIG</key>
	<string>$P4CONFIG</string>
</dict>
</plist>
EOF


[ Reply to This | # ]