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

Re: login script & xterm



ms419@freezone.co.uk wrote:
> Where should I put commands to be executed when I login, & when I open 
> an xterm, but not when a shell is run on other occasions?

> I want some commands executed when I login, but not when a shell is 
> otherwise run, so I put them in my ~/.login, vs. my ~/.bashrc. 
> Unfortunately, they aren't executed when I open an xterm.

But you could make a command, e.g., in your menu setup, which does this.
For example
	xterm -e sh -c initialize_and_go

> I hoped there might be a ~/.xtermrc I could put them in, but I haven't 
> found mention of an xterm initialization script anywhere in the 
> documentation.

> Also, I thought I could configure xterm to start as if with the -ls 
> flag. Anyway, there's probably a reason it doesn't, like a login shell 
> might break some application using xterm?

It would annoy people who want xterm to start rapidly without running the
initialization script.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Reply to: