9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Stuart Morrow <morrow.stuart@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Rc port.
Date: Thu, 24 Jan 2019 14:31:11 +0000	[thread overview]
Message-ID: <CABB-WO_eQx4rJCDwU8FPUvLMnEHY9GaVeJDeUQjx0-X28PjepQ@mail.gmail.com> (raw)
In-Reply-To: <CAJFUHyUrNA8bgBhWti3vSzizTaXW7-a6_7XRn3zx+a5zoC6ezg@mail.gmail.com>

> feature i would ove: something equiv to a PS1 line so i know what
> folder i'm in. Can I do that with $prompt?

IIRC, with es you can get persistent history, and control your prompts
with arbitrarily complex logic, all without building stuff into
/bin/es. You can do it with es code in esmain or your user profile
(Again, IIRC.)

I might have imagined that, but I'm even more sure you can set it up
so that if a first refers to a directory, then it's the same as cd
that directory. So a prompt could be

/place;

and you can click and resend the whole thing and the result is it goes
to /place for you (then does the stuff after the semicolon).

Finally, I'm most sure of all that if the above is correct then you
can also make it so that

/place {

is the prompt and it executes the actual command only if the /place is
successful. You'd have to finish off all your commands with a },
though...

-Morrow



  parent reply	other threads:[~2019-01-24 14:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23 21:39 Federico Benavento
2019-01-23 21:57 ` Calvin Morrison
2019-01-23 21:59   ` Federico Benavento
2019-01-23 22:11     ` Calvin Morrison
2019-01-23 22:32       ` Federico Benavento
2019-01-24 16:23         ` Federico Benavento
2019-01-24 14:31       ` Stuart Morrow [this message]
2019-01-24 16:13         ` erik quanstrom
2019-01-25 15:13           ` Stuart Morrow
2019-01-25 16:02             ` erik quanstrom
2019-01-25 23:11     ` Ethan Gardener
2019-01-26 13:23       ` [9fans] Scripts in 9pm Ethan Gardener
2019-01-26 14:09         ` Ethan Gardener
2019-01-24  3:01 ` [9fans] Rc port Mayuresh Kathe
2019-01-24 16:25   ` Federico Benavento
2019-01-24 16:32     ` Federico Benavento
2019-01-24 16:54       ` Mayuresh Kathe
2019-01-25 14:49     ` Stuart Morrow
2019-01-28 15:22 ` arnold
2019-01-30 16:02   ` Federico Benavento

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=CABB-WO_eQx4rJCDwU8FPUvLMnEHY9GaVeJDeUQjx0-X28PjepQ@mail.gmail.com \
    --to=morrow.stuart@gmail.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).