> Well, 'man xterm' says it is 'xterm -l' but it doesn't work.
> Or with a cmd-N when you are in X11.
> > Well, 'man xterm' says it is 'xterm -l' but it doesn't work.
> The man page says -l turns on logging. To get a login shell, use -ls.
Yes, that works.
> Or, better, configure your shell rc scripts to do the same thing in all
> interactive shells, login or not. Just make a symlink from .profile to
> .bashrc.
Yes, that works too.
> > Furthermore, you'll usually start xterm when you start X11 - directly
> > from the MacOS X Finder.
> It runs the script /etc/X11/xinit/xinitrc, which you can edit, or copy
> to your home directory as .xinitrc and edit.
Seems straigtforward.
> You can also use the loginShell resource in ~/.Xresources so that all
> xterms run login shells by default.
Well, I don't even know what .Xresources should look like. I can't find
any and the way you write about it suggests that it isn't just a text
file.
> > Or with a cmd-N when you are in X11.
> This is modifiable. cmd-N in my X11.app runs rxvt.
Which isn't even in my path. BTW, where do you change cmd-N?

Signature
Per Erik Rønne
D P Schreber - 09 May 2005 12:09 GMT
> Well, I don't even know what .Xresources should look like. I can't find
> any and the way you write about it suggests that it isn't just a text
> file.
It is. A typical line looks like this:
xterm.loginShell: true
The piece before the colon names a resource, the piece after gives a
default value for that resource. Resource names are of the form a.b.c..
to an arbitrary depth. Most of the time they're just program.resource,
as above. So when the xterm man page refers to the 'loginShell'
resource, they're talking about the resource 'xterm.loginShell'.
If you look in the standard init file /etc/X11/xinit/xinitrc, you'll see
that one of things it does when the X server starts is:
if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi
where $userresources is ~/.Xresources. So if you have a file by that
name and it contains the line above, all xterms by default will run
login shells. You can use the same mechanism to set many other defaults
attributes of xterms: background color, font, scrollback lines etc etc.
>> > Or with a cmd-N when you are in X11.
>
>> This is modifiable. cmd-N in my X11.app runs rxvt.
>
> Which isn't even in my path.
Apple doesn't include the rxvt X11 terminal emulator, but it's easy to
build. I prefer it to xterm.
> BTW, where do you change cmd-N?
The X11.app Applications menu lets you assign keyboard shortcuts to
little scripts, via 'Customize menu'. By default it assigns cmd-n to
'xterm', but you're free to modify it.
Per Rønne - 09 May 2005 13:01 GMT
> > Well, I don't even know what .Xresources should look like. I can't find
> > any and the way you write about it suggests that it isn't just a text
[quoted text clipped - 3 lines]
>
> xterm.loginShell: true
OK, that explains why mine didn't work. I'd written:
XTerm*LoginShell: true
> >> This is modifiable. cmd-N in my X11.app runs rxvt.
> > Which isn't even in my path.
> Apple doesn't include the rxvt X11 terminal emulator, but it's easy to
> build. I prefer it to xterm.
OK, I may try it. BTW, I also had to install ksh myself - though it
seems to come with the standard 10.4 package.
> > BTW, where do you change cmd-N?
>
> The X11.app Applications menu lets you assign keyboard shortcuts to
> little scripts, via 'Customize menu'. By default it assigns cmd-n to
> 'xterm', but you're free to modify it.
I see now - and I see that I've known before. Just forgotten.
Thank you very much.

Signature
Per Erik Rønne
Dave Seaman - 09 May 2005 14:45 GMT
>> > Well, I don't even know what .Xresources should look like. I can't find
>> > any and the way you write about it suggests that it isn't just a text
[quoted text clipped - 3 lines]
>>
>> xterm.loginShell: true
> OK, that explains why mine didn't work. I'd written:
> XTerm*LoginShell: true
That's what I've always used. It works for me.
Did you restart X11 after installing this?

Signature
Dave Seaman
Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
<http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>
Per Rønne - 09 May 2005 15:31 GMT
> >> > Well, I don't even know what .Xresources should look like. I can't find
> >> > any and the way you write about it suggests that it isn't just a text
[quoted text clipped - 10 lines]
> That's what I've always used. It works for me.
> Did you restart X11 after installing this?
I think so. But of course I'm not sure.

Signature
Per Erik Rønne
Barry Margolin - 10 May 2005 02:32 GMT
> >> > Well, I don't even know what .Xresources should look like. I can't find
> >> > any and the way you write about it suggests that it isn't just a text
[quoted text clipped - 10 lines]
> That's what I've always used. It works for me.
> Did you restart X11 after installing this?
It should work with either "." or "*", but I think the "l" has to be
lowercase in either case.

Signature
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Dave Seaman - 10 May 2005 03:28 GMT
>> >> > Well, I don't even know what .Xresources should look like. I can't find
>> >> > any and the way you write about it suggests that it isn't just a text
[quoted text clipped - 10 lines]
>> That's what I've always used. It works for me.
>> Did you restart X11 after installing this?
> It should work with either "." or "*", but I think the "l" has to be
> lowercase in either case.
I have been using it with a capital "L" for years, and it has always worked.
When I type "ps $$" in my xterm, the command I see is "-bash".

Signature
Dave Seaman
Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
<http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>