all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Wiegley <jwiegley@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Inferior process mystery
Date: Wed, 25 Apr 2012 21:21:26 -0500	[thread overview]
Message-ID: <m2zk9zutax.fsf@gmail.com> (raw)
In-Reply-To: 6626E25F-B780-4773-AEAA-D9451BC0E9ED@gmail.com

>>>>> Ivan Andrus <darthandrus@gmail.com> writes:

> Since you're on a Mac, GUI applications don't inherit from your shell.
> Instead you should set environment variables in ~/.MacOSX/environment.plist,
> or see [1] for a number of other ways to set them and the different problems
> they have.

I use ~/.MacOSX/environment for _all_ environment variables, and then put this
in my .zshrc:

  if [ -x $HOME/bin/shell-args ]; then
    eval `$HOME/bin/shell-args`
  if

And that script does this:

  #!/usr/bin/perl
  
  $MULTILINE_MATCHING = 1;
  
  open(ARGS, "~/.MacOSX/environment.plist") || die;
  
  while (<ARGS>) {
      print "export $1" if /<key>(.+?)<\/key>/;
      print "=\"$1\"\n" if /<string>(.+?)<\/string>/;
  }

That way, I only have to consider a single place.

John




  reply	other threads:[~2012-04-26  2:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25 14:46 Inferior process mystery Dave Abrahams
2012-04-25 15:21 ` Andreas Schwab
2012-04-25 17:20   ` Dave Abrahams
2012-04-25 18:02     ` Andreas Schwab
2012-04-25 19:15       ` Ivan Andrus
2012-04-26  2:21         ` John Wiegley [this message]
2012-04-26 16:17       ` Dave Abrahams
2012-04-25 15:32 ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zk9zutax.fsf@gmail.com \
    --to=jwiegley@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.