On Monday, October 7, 2002, at 11:59  AM, Gaetano Vitale wrote:

> Hi,
> is it possible to initialize the tcsh in 10.2 with both 
> /sw/bin/init.csh
> and jaguar's /usr/share/tcsh/examples/rc and 
> /usr/share/tcsh/examples/login or to integrate somehow these files? I 
> miss the tcsh settings iI had in 10.1...
> Thanks in advance for help

Yes.  First and foremost, though, fix the typo in 
/usr/share/tcsh/examples/aliases or else terminal will behave "buggy".  
The line "if ("$TERM_PROGRAM" == "Apple_Terminal") then" SHOULD be "if 
("$?TERM_PROGRAM" == "Apple_Terminal") then" (if this typo doesn't 
exist for you then it may be that the 10.2.1 update fixed it. Since I 
fixed this typo myself before the 10.2.1 update was released I don't 
know wether or not this was fixed in that update, only that the update 
description says it "fixes an issue with Terminal".). After adding the 
appropriate "?" (if necessary), type the following lines:

sudo echo "source /usr/share/tcsh/examples/rc" > /etc/csh.cshrc

sudo echo "source /usr/share/tcsh/examples/login" > /etc/csh.login

sudo echo "source /usr/share/tcsh/examples/logout" > /etc/csh.logout

This will add the handy 10.1 config settings to your global tcsh init 
scripts in 10.2 (creating new ones in the case of csh.login and 
csh.logout).  Then type:

echo "source /sw/bin/init.csh" > ~/.cshrc

to add the fink init to your user tcsh init script.

[WARNING: The 'echo "some text" > file' method overwrites all existing 
data in the target file, so DON"T use this method if you have other 
environment variables set in your init scripts that you want to keep, 
just manually add the appropriate line(s) with a text editor.  The 
default /etc/csh.cshrc file is o.k. to overwrite because it contains no 
data that isn't duplicated in the /usr/share/tcsh/examples/rc file.]

Since I wanted to be able to choose wether or not I use the fink init, 
I used pico to add  "source /sw/bin/init.sh" to my 
/etc/X11/xinit/xinitrc file (after installing Xfree86-rootless, of 
course) then removed my ~/.cshrc file.  Now when I use Apple Terminal I 
have only the native OS X environment variables and when I want to use 
fink I use Xterm from within XDarwin.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to