On 2/2/06, William <[EMAIL PROTECTED]> wrote:
> I am so very sure this has been gone over in depth. If I've missed where the
> information is at then please point me in the right direction and I'll go
> away :)
>
> I have fink installed and also a couple of self compiled packages that I've
> rolled myself. All the fink stuff goes in /sw but the stuff I rolled myself
> is in /usr/local/bin.
>
> To get terminal to see /usr/local/bin it's a simple matter of editing
> /etc/profile to include it and you're done. It doesn't seem to work in the
> ~/.profile as init.sh gets overridden.
>
> In my home folder I have a ~/.profile file with the:
> test -r /sw/bin/init.sh && . /sw/bin/init.sh
> line that fink installs and a bunch of aliases I've set up. I've found that
> the only way for X11 to see the init.sh is to add it to a ~/.bashrc file, so
> I've done this by making a symlink from ~/.profile to ~/.bashrc. By the by,
> if this is not good practice, please chip in.
>
> So far, so good.
>
> X11 is another matter altogether. I know there's some difference
> (interactive vs. non-interactive) between the type of shells used by
> Terminal and X11's Term. But I can't work out where to add /usr/local/bin to
> X11's path. The /etc/bashrc file doesn't have a PATH statement.
>
> So where do I go to add /usr/local/bin to the path X11 sees?
>
> William
>
>
>
>

Actually the difference between the terminals is that Terminal.app is
set up by default that new terminals invoke a login shell, whereas
xterm doesn't do this by default.

I do all of my environment settings (Fink and otherwise) that I need
X11.app to know about in ~/.bashrc (mainly because I don't like
mucking around with the system-level files).  My ~/.bash_profile has
". ~/.bashrc" in it (e.g. rather than a symlink) so that interactive
shells also get the same.

Depending on what you're doing, you might get sufficient traction out
of changing the X11 Terminal menu item from "xterm" to "xterm -ls".
--
Alexander K. Hansen
Fink Documenter
[Day Job] Levitated Dipole Experiment
http://psfcwww2.psfc.mit.edu/ldx/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to