Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / General / General / May 2008



Tip: Looking for answers? Try searching our database.

tcsh in X11

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JJ - 28 Apr 2008 21:40 GMT
Sorry if this is a newbie question, but this is my first mac (macbook pro).

Two questions actually - about X11.

1.  How can I set my default shell to be tcsh instead of bash?

2.  When I start X11 and a window pops up, the path looks like this:
"/usr/bin:/bin:/usr/sbin:/sbin".  However, when I command-n to open
successive windows, the path in the new windows also has /usr/X11/bin at
the end.  Why isn't /usr/X11/bin in the path for the first window that
comes up?  and how can I get it to be there?

Thanks.

-Jonathan
fakeuser@invalid.domain - 28 Apr 2008 22:41 GMT
>Sorry if this is a newbie question, but this is my first mac (macbook pro).
>
>Two questions actually - about X11.
>
>1.  How can I set my default shell to be tcsh instead of bash?

This might depend on the version of Mac OS you are using. In <= 10.4
it is the NetInfo Manager in Applications/Utilities.

>2.  When I start X11 and a window pops up, the path looks like this:
>"/usr/bin:/bin:/usr/sbin:/sbin".  However, when I command-n to open
>successive windows, the path in the new windows also has /usr/X11/bin at
>the end.  Why isn't /usr/X11/bin in the path for the first window that
>comes up?  and how can I get it to be there?

In my home directory I have a file .MacOSX/enviroment.plist which
contains
<?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">
<dict>
       <key>MANPATH</key>
       <string>/usr/share/man:/usr/X11R6/man:/opt/local/share/man</string>
       <key>PATH</key>
       <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/opt/local/bin:/opt
/local/sbin</string>
</dict>
</plist>

It controls environmental variables.

>Thanks.
>
>-Jonathan

Signature

Steven Bellenot                 http://www.math.fsu.edu/~bellenot
Professor and Associate Chair               phone: (850) 644-7405
Department of Mathematics                        office: 223 Love
Florida State University          email: bellenot at math.fsu.edu

JJ - 29 Apr 2008 18:13 GMT
>>1.  How can I set my default shell to be tcsh instead of bash?
>
> This might depend on the version of Mac OS you are using. In <= 10.4
> it is the NetInfo Manager in Applications/Utilities.

I'm running leopard (10.5.2), and I can't find the suggested
application.  In the terminal program, I can set the shell from the
Preference dialog, but not so for the X11 windows.

Anyone know how to do this for 10.5.2?

Thanks.

-Jonathan
Mac Dude - 24 May 2008 14:47 GMT
> >>1.  How can I set my default shell to be tcsh instead of bash?
> >
[quoted text clipped - 10 lines]
>
> -Jonathan

Try chsh -s /bin/tcsh

in a terminal or xterm window. This works in Tiger & Panther, it may still work
in Leo (which I don't run yet).

Mac Dude
JJ - 29 Apr 2008 18:19 GMT
> 1.  How can I set my default shell to be tcsh instead of bash?

Ah, I found the answer for Leopard at:

http://spider.ipac.caltech.edu/staff/hoard/pages/MacOSX_configuration_tips.html

Thanks all.

-Jonathan
Hauke Fath - 09 May 2008 17:03 GMT
> 2.  When I start X11 and a window pops up, the path looks like this:
> "/usr/bin:/bin:/usr/sbin:/sbin".  However, when I command-n to open
> successive windows, the path in the new windows also has /usr/X11/bin at
> the end.  Why isn't /usr/X11/bin in the path for the first window that
> comes up?  and how can I get it to be there?

The tcsh(1) has two kinds of config files: The /etc/csh.login(+) and
~/.login files are sourced for login shells only, the /etc/csh.cshrc and
~/.cshrc files are sourced by every shell started.

Now, things that need to be set up once per session like the PATH are
usually placed in *login. Unfortunately, the xterm that comes up after
Apple's X11 server is started is not fed the proper option ('-ls') to
start with a login shell, thus does not evaluate the *login scripts, and
as a result comes up with a minimal default environment.

What I do is ignore the initial xterm, and use my own xterm menu entry
that has something like "xterm -ls -sb -sl 500".

HTH,
       hauke

(+) or wherever Apple in their infinite wisdom chose to store the file
this year...

Signature

Now without signature.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.