okay, in that case, would you be in a position to add-in the excellent
enhancements you made to your copy to the "rc" in plan9port?
On 2019-01-24 10:02 PM, Federico Benavento wrote:
Oh, maybe it wasn’t so obvious, but this copy has edit, history and
completion which can be customized by definin
is there a buildable version of es any longer? es is interesting, and worth a look but I think it failed to justify it's extra-user visible layers.I wrote a shell similar to rc before Byron's almost-clone. mirroring Duff's comments about sh, beating rc is not easy. the bar is really high.- erik
Oh, maybe it wasn’t so obvious, but this copy has edit, history and completion
which can be customized by defining a fn complete{} function.
> On Jan 24, 2019, at 1:25 PM, Federico Benavento wrote:
>
> I just wanted the shell, not the whole thing, it’s a port, because I started
> from the copy
I just wanted the shell, not the whole thing, it’s a port, because I started
from the copy in /sys/src/cmd/,
I didn’t want to use es either.
> On Jan 24, 2019, at 12:01 AM, Mayuresh Kathe wrote:
>
> On 2019-01-24 03:09 AM, Federico Benavento wrote:
>> Hola,
>> I just uploaded a standalone unix
Here, this is what I have.
fn setprompt {
# delete old function
fn $ps1
PWD=`{pwd}
ps1='['^$sysname^':'^`{basename $PWD}^']%'
prompt=($ps1^' ' ' ')
fn $ps1 { if(! ~ $#* 0) $* }
# macOS Terminal Title
printf '\033]7;%s\007' file
> 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 y