From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 11 Aug 2011 09:55:52 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] shell for wins in p9p acme Topicbox-Message-UUID: 0e4ed732-ead7-11e9-9d60-3106f5b1d025 why do you want to source lib/profile every time you open a new win? it's conventional to source it only once, and then rely on inherited environment variables. anyway, if you really wanted to do that, you could just make a script, say rc-l, #!/bin/rc exec rc -l $* and set SHELL=rc-l On 11 August 2011 09:39, Mathieu Lonjaret wrote: > Hi, > > what's the best solution if I want all the wins I open in acme to > automatically have rc as a shell (with -l, so that my lib/profile has > been read too), while still keeping bash as my SHELL when I'm out of > acme, for various reasons. > So far I simply have a script/launcher for acme that exports the SHELL > to rc before starting acme, but I still have to source lib/profile > everytime I open a new win, which is a bit annoying. > > Of course I could change src/cmd/9term/rcstart.c, but if there's a > less intrusive solution I'd like to hear it please. > > Cheers, > Mathieu > >