9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Derek Carter (aka goozbach)" <goozbach@friocorte.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Win starting rc?
Date: Mon, 17 Jun 2013 15:40:09 -0400	[thread overview]
Message-ID: <51BF6619.30404@friocorte.com> (raw)
In-Reply-To: <5979A385-42FD-4532-8730-8A5BB912AE8E@monkey.org>

-----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-----



  reply	other threads:[~2013-06-17 19:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11 16:09 Brian Vito
2013-06-11 16:18 ` marius eriksen
2013-06-17 19:40   ` Derek Carter (aka goozbach) [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51BF6619.30404@friocorte.com \
    --to=goozbach@friocorte.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).