9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Win starting rc?
@ 2013-06-11 16:09 Brian Vito
  2013-06-11 16:18 ` marius eriksen
  2013-06-11 17:06 ` Matthew Veety
  0 siblings, 2 replies; 8+ messages in thread
From: Brian Vito @ 2013-06-11 16:09 UTC (permalink / raw)
  To: 9fans

Is there a way to have Acme's Win command start an rc session rather
than bash? Also, is it possible to set the bash prompt to PS1=": {\w}
%; " if bash is started by Win? Thanks again.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-11 16:09 [9fans] Win starting rc? Brian Vito
@ 2013-06-11 16:18 ` marius eriksen
  2013-06-17 19:40   ` Derek Carter (aka goozbach)
  2013-06-11 17:06 ` Matthew Veety
  1 sibling, 1 reply; 8+ messages in thread
From: marius eriksen @ 2013-06-11 16:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: 9fans

On Jun 11, 2013, at 4:09 PM, Brian Vito <brian.vito@gmail.com> wrote:

> Is there a way to have Acme's Win command start an rc session rather
> than bash? Also, is it possible to set the bash prompt to PS1=": {\w}
> %; " if bash is started by Win? Thanks again.

export SHELL=rc

For the latter, you might find it useful to make PS1 conditional on $TERM.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-11 16:09 [9fans] Win starting rc? Brian Vito
  2013-06-11 16:18 ` marius eriksen
@ 2013-06-11 17:06 ` Matthew Veety
  2013-06-11 20:33   ` dexen deVries
  1 sibling, 1 reply; 8+ messages in thread
From: Matthew Veety @ 2013-06-11 17:06 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Jun 11, 2013, at 16:09, Brian Vito <brian.vito@gmail.com> wrote:

> Is there a way to have Acme's Win command start an rc session rather
> than bash? Also, is it possible to set the bash prompt to PS1=": {\w}
> %; " if bash is started by Win? Thanks again.
>

Bash was ported to plan 9?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-11 17:06 ` Matthew Veety
@ 2013-06-11 20:33   ` dexen deVries
  2013-06-11 21:04     ` Matthew Veety
  0 siblings, 1 reply; 8+ messages in thread
From: dexen deVries @ 2013-06-11 20:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tuesday 11 of June 2013 13:06:15 Matthew Veety wrote:
> On Jun 11, 2013, at 16:09, Brian Vito <brian.vito@gmail.com> wrote:
> > Is there a way to have Acme's Win command start an rc session rather
> > than bash? Also, is it possible to set the bash prompt to PS1=": {\w}
> > %; " if bash is started by Win? Thanks again.
> 
> Bash was ported to plan 9?	 

the other way around: http://swtch.com/plan9port/


also p9p mk defaults to bash , so it's good to set MKSHELL=rc on top of 
mkfiles.


-- 
dexen deVries

[[[↓][→]]]

I have seen the Great Pretender and he is not what he seems.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-11 20:33   ` dexen deVries
@ 2013-06-11 21:04     ` Matthew Veety
  0 siblings, 0 replies; 8+ messages in thread
From: Matthew Veety @ 2013-06-11 21:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Jun 11, 2013, at 16:33, dexen deVries <dexen.devries@gmail.com> wrote:

>> Bash was ported to plan 9?
>
> the other way around: http://swtch.com/plan9port/

Shit, I'm really dumb sometimes.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-11 16:18 ` marius eriksen
@ 2013-06-17 19:40   ` Derek Carter (aka goozbach)
  2013-06-18  9:04     ` Charles Forsyth
  0 siblings, 1 reply; 8+ messages in thread
From: Derek Carter (aka goozbach) @ 2013-06-17 19:40 UTC (permalink / raw)
  To: 9fans

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/11/13 1218, marius eriksen wrote:
> On Jun 11, 2013, at 4:09 PM, Brian Vito <brian.vito@gmail.com>
> wrote:
>
>> Is there a way to have Acme's Win command start an rc session
>> rather than bash? Also, is it possible to set the bash prompt to
>> PS1=": {\w} %; " if bash is started by Win? Thanks again.
>
> export SHELL=rc
>
> For the latter, you might find it useful to make PS1 conditional on
> $TERM.
>

This is what I use in my dotfiles to turn off the "fancy term" stuff
for use in Win/9term.

https://github.com/goozbach/dot_files/blob/master/_profile.d/95-plan9.sh


It undoes my colorful terminal prompt;  re-aliases git, tree, lc, and
grep to remove color and make more 9term/plumber friendly; and
overrides the cd command to update acme's working directory.

There are probably a couple of additional things I could make it do
but I've not yet ran into other issues.

BTW I'm still using BASH as my $SHELL, I should go 'whole hog' and try
rc, but baby steps... baby steps...

- --
Derek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRv2YZAAoJECcWlbcE84qzkl8P/iPdqx6npm9IShfoH8HxEGRa
Hm7TAIt5CALi+Quz9l517m3ImvfickjycYNUD1iP/mwi2HuHBQqXAJFLh1cu+lCf
3//LQWz9vmxvY1c0X8YoQgEBPeIdUNGPogrIO6CHiieLFwlAFonf0ZswtlMDme3z
LEXyEYL41kajiqPkl0Yx99aTUeNBf7pVYIp+dLCyDJr8/+EqTvHMPOcq+CxOlZsK
GPC6WEt5QjvTIyXF6qW5TNNUOegEDphutnTrV9ZfVsblqAPuikYbGZ2fnb/1Ed3J
mWitnMKJTUZk5NYbi2G8COSChgSQbdgCXUpSAkfbQZtrYe2WiLdO7wb3RIV1iyLr
mTlO1h/hKuD/82hzb3J/VkQujWCYGzbwtgPzZwaLzuw9tkqrz+iYXZGZPiDcj4+J
8wxVfg/G3VHCm+IjAmABTaRYyHyANhB6WV+Maj+aml0v2SHjaL8IvfAMxVC80Dvg
y18FKhmXv6z5l/ybDMtH9RIwF2cE5dDU67IbZ1bBNLswhQR+2Bu4RcUdIj8pTeMI
0dnxQe3U0AjgJcbe4kNgHw75IpgxEm2V2uNNO83KL+Dh8cxlY/93HAXrPV8XWFut
Sc01CtdOAc+Zkbppv/QUbQj6KQKN8geOhjjSF6k34IMi8Vgb6DGfFDooduT0cIMb
/SN0Ad3Q0z7sTccjiDVq
=spO7
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-17 19:40   ` Derek Carter (aka goozbach)
@ 2013-06-18  9:04     ` Charles Forsyth
  2013-06-18 13:30       ` Matthew Veety
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Forsyth @ 2013-06-18  9:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

On 17 June 2013 20:40, Derek Carter (aka goozbach)
<goozbach@friocorte.com>wrote:

> BTW I'm still using BASH as my $SHELL, I should go 'whole hog' and try
> rc, but baby steps... baby steps...
>

When I switched to /bin/rc on Ubuntu, I found that even the
Applications>Terminal windows appeared quickly,
compared to whatever shell was being used by default. Of course, with both
9term and rc, windows appear immediately.

[-- Attachment #2: Type: text/html, Size: 820 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Win starting rc?
  2013-06-18  9:04     ` Charles Forsyth
@ 2013-06-18 13:30       ` Matthew Veety
  0 siblings, 0 replies; 8+ messages in thread
From: Matthew Veety @ 2013-06-18 13:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

On Jun 18, 2013, at 5:04, Charles Forsyth <charles.forsyth@gmail.com> wrote:

> 
> On 17 June 2013 20:40, Derek Carter (aka goozbach) <goozbach@friocorte.com> wrote:
>> BTW I'm still using BASH as my $SHELL, I should go 'whole hog' and try
>> rc, but baby steps... baby steps...
> 
> When I switched to /bin/rc on Ubuntu, I found that even the Applications>Terminal windows appeared quickly,
> compared to whatever shell was being used by default. Of course, with both 9term and rc, windows appear immediately.

Ubuntu has a lot of shit that bash has to run before it starts to "improve the user experience."

[-- Attachment #2: Type: text/html, Size: 1242 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-18 13:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 16:09 [9fans] Win starting rc? Brian Vito
2013-06-11 16:18 ` marius eriksen
2013-06-17 19:40   ` Derek Carter (aka goozbach)
2013-06-18  9:04     ` Charles Forsyth
2013-06-18 13:30       ` Matthew Veety
2013-06-11 17:06 ` Matthew Veety
2013-06-11 20:33   ` dexen deVries
2013-06-11 21:04     ` Matthew Veety

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).