help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inherit the path environment from .bash_profile (Mac OS 10.5)


From: Peter Dyballa
Subject: Re: inherit the path environment from .bash_profile (Mac OS 10.5)
Date: Fri, 6 Aug 2010 17:36:50 +0200


Am 06.08.2010 um 16:00 schrieb Jim Crossley:

;; Setup PATH
(setenv "PATH" (shell-command-to-string "source ~/.bashrc; echo -n $PATH"))


You have the defaults utility which you can use inside shell RC files:

        setenv MANPATH  `defaults read ~/.MacOSX/environment MANPATH`
        export PATH=$(defaults read "${HOME}/.MacOSX/environment" PATH)

If needed! Remember that ~/.MacOSX/environment.plist is read at login time so that all applications launched afterwards (from Dock or via launch service) inherit this process environment. (On Tiger, Mac OS X 10.4, X11 did not pass the environemnt to its X clients.) When you remotely log in you might need settings in your login shell's RC file(s). Which I can't test...

--
Greetings

  Pete

Time flies like an error – but fruit flies like a banana!
                                - (almost) Groucho Marx




reply via email to

[Prev in Thread] Current Thread [Next in Thread]