Discussion:
Win starting rc?
(too old to reply)
Brian Vito
2013-06-11 16:09:03 UTC
Permalink
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.
marius eriksen
2013-06-11 16:18:43 UTC
Permalink
Post by Brian Vito
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.
Derek Carter (aka goozbach)
2013-06-17 19:40:09 UTC
Permalink
Post by marius eriksen
Post by Brian Vito
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
Charles Forsyth
2013-06-18 09:04:24 UTC
Permalink
On 17 June 2013 20:40, Derek Carter (aka goozbach)
Post by Derek Carter (aka goozbach)
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.
Matthew Veety
2013-06-18 13:30:25 UTC
Permalink
Post by Derek Carter (aka goozbach)
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."
Matthew Veety
2013-06-11 17:06:15 UTC
Permalink
Post by Brian Vito
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?
dexen deVries
2013-06-11 20:33:26 UTC
Permalink
Post by Matthew Veety
Post by Brian Vito
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.
Matthew Veety
2013-06-11 21:04:49 UTC
Permalink
Post by dexen deVries
Post by Matthew Veety
Bash was ported to plan 9?
the other way around: http://swtch.com/plan9port/
Shit, I'm really dumb sometimes.
Continue reading on narkive:
Loading...