From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: Changing $HOME
Date: 05 Mar 2005 00:07:32 +0100 [thread overview]
Message-ID: <87vf87ui17.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1109968082.394434.43120@z14g2000cwz.googlegroups.com
"Shug Boabby" <Shug.Boabby@gmail.com> writes:
> i do not have a ~/.MacOSX/environment.plist file and i have no idea
> what to enter in
> order to get Emacs alone to pick up on a few envars. the following
> looks like it will
> help though:
> http://developer.apple.com/qa/qa2001/qa1067.html
>
> cheers!
For example:
$ cat /g/naiad-macosx/pascal/dot-files/.MacOSX/environment.plist
<?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">
<!-- automatically generated by ~/.bash_profile -->
<dict>
<key>DYLD_NO_FIX_PREBINDING</key>
<string>1</string>
<key>PATH</key>
<string>/Users/pascal/bin:/usr/local/bin:/sw/bin:/Developer/Tools:/Users/pascal/bin:/usr/local/bin:/sw/bin:/Developer/Tools:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin</string>
<key>MANPATH</key>
<string>/usr/local/man:/usr/local/share/man:/sw/share/man:/usr/X11R6/man:/usr/share/man</string>
<key>LC_MONETARY</key>
<string>es_ES</string>
<key>LC_NUMERIC</key>
<string>en_US</string>
<key>LC_MESSAGES</key>
<string>en_US</string>
<key>LC_COLLATE</key>
<string>C</string>
<key>LC_CTYPE</key>
<string>fr_FR</string>
<key>LC_TIME</key>
<string>en_US</string>
</dict>
</plist>
Extracted from ~/.bash_profile :
----------------------------------------
function update-environment-plist () {
local vars=$@
local tmpf=$HOME/.MacOSX/newenvironment.plist
local plif=$HOME/.MacOSX/environment.plist
cat > $tmpf <<'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">
<!-- automatically generated by ~/.bash_profile -->
<dict>
EOF
for v in ${vars[@]} ; do
cat >> $tmpf <<EOF
<key>${v}</key>
<string>${!v}</string>
EOF
done
cat >> $tmpf <<'EOF'
</dict>
</plist>
EOF
mv "${plif}" "${plif}~"
mv "${tmpf}" "${plif}"
}
update-environment-plist DYLD_NO_FIX_PREBINDING PATH MANPATH \
LC_MONETARY LC_NUMERIC LC_MESSAGES LC_COLLATE LC_CTYPE LC_TIME
----------------------------------------
--
__Pascal Bourguignon__ http://www.informatimago.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d? s++:++ a+ C+++ UL++++ P--- L+++ E+++ W++ N+++ o-- K- w---
O- M++ V PS PE++ Y++ PGP t+ 5+ X++ R !tv b+++ DI++++ D++
G e+++ h+ r-- z?
------END GEEK CODE BLOCK------
next prev parent reply other threads:[~2005-03-04 23:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-23 23:34 Changing $HOME Shug Boabby
2005-02-24 0:17 ` David Hansen
2005-02-24 0:29 ` Shug Boabby
2005-02-24 16:07 ` Sébastien Kirche
2005-03-04 20:28 ` Shug Boabby
2005-03-04 20:31 ` Shug Boabby
2005-03-04 23:07 ` Pascal Bourguignon [this message]
2005-03-04 23:33 ` Shug Boabby
2005-03-04 23:51 ` Kevin Rodgers
2005-03-05 0:14 ` Shug Boabby
2005-03-05 0:16 ` Pascal Bourguignon
2005-03-05 0:18 ` Pascal Bourguignon
2005-03-05 0:23 ` Shug Boabby
2005-03-05 7:07 ` Oliver Scholz
2005-03-07 4:30 ` Shug Boabby
2005-03-05 7:08 ` Oliver Scholz
2005-03-05 0:22 ` Shug Boabby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vf87ui17.fsf@thalassa.informatimago.com \
--to=spam@mouse-potato.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).