Re: [9fans] Rc port.

2024-10-11 Thread wb . kloke
Thanks for this reminder. To install on FreeBSD, Make.Linux has te be copied to Make.FreeBSD and the usual /usr/local additions be made; you need gmake instead of standard bmake. > -I /usr/local/include > -L /usr/local/lib  -lreadline > and -fcommon in CFLAGS

Re: [9fans] Rc port.

2024-10-11 Thread Robert Sherwood
Hey, I know this is a very old thread, but I wanted to thank you for posting this set of functions. I was looking into how to set the prompt to the CWD this this morning. This is exactly what I was looking for, and I've learned a lot about rc from reading it. This is why I never delete emails :) O

Re: [9fans] Rc port.

2019-01-30 Thread Federico Benavento
Fixed, thanks. > On Jan 28, 2019, at 12:22 PM, arn...@skeeve.com wrote: > > Federico Benavento wrote: > >> Hola, >> >> I just uploaded a standalone unix (only tested on macOS/Linux) port with >> edit, history and completion support to GitHub. >> I have been using it as my primary shell for mo

Re: [9fans] Rc port.

2019-01-28 Thread arnold
Federico Benavento wrote: > Hola, > > I just uploaded a standalone unix (only tested on macOS/Linux) port with > edit, history and completion support to GitHub. > I have been using it as my primary shell for months on macOS and it???s seems > to be working pretty well. > > https://github.com/be

Re: [9fans] Rc port.

2019-01-25 Thread Ethan Gardener
On Wed, Jan 23, 2019, at 9:59 PM, Federico Benavento wrote: > I’ve been able to survive quite well on a regular Mac terminal with it. I remember thinking regular rc was tolerable on a Mac terminal thanks to the terminal copy/pasting with normal keybindings, but this would be better. I've been t

Re: [9fans] Rc port.

2019-01-25 Thread erik quanstrom
correct.  Doug's original proposal was very nonlinear.  Ken's genius was finding an implementable and useful subset.- erikOn Jan 25, 2019 07:13, Stuart Morrow wrote:I take back the stuff where a directory can be a command  - it interacts weird with $path:you’d do `..’ thinking it’s the same as `cd

Re: [9fans] Rc port.

2019-01-25 Thread Stuart Morrow
I take back the stuff where a directory can be a command - it interacts weird with $path: you’d do `..’ thinking it’s the same as `cd ..’, except it’s actually `cd /bin/..’. > is there a buildable version of es any longer? I just found http://wryun.github.io/es-shell/ I’ve never actua

Re: [9fans] Rc port.

2019-01-25 Thread Stuart Morrow
> I just wanted the shell, not the whole thing You should post it to suckless. I recall a thread years ago discussing what the ‘official’ shell of the suckless project ought to be. Rc went completely unmentioned for at least about half of the thread, although they can’t possibly have been unawar

Re: [9fans] Rc port.

2019-01-24 Thread Mayuresh Kathe
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

Re: [9fans] Rc port.

2019-01-24 Thread erik quanstrom
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

Re: [9fans] Rc port.

2019-01-24 Thread Federico Benavento
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

Re: [9fans] Rc port.

2019-01-24 Thread Federico Benavento
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

Re: [9fans] Rc port.

2019-01-24 Thread Federico Benavento
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

Re: [9fans] Rc port.

2019-01-24 Thread Stuart Morrow
> 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

Re: [9fans] Rc port.

2019-01-23 Thread Mayuresh Kathe
On 2019-01-24 03:09 AM, Federico Benavento wrote: Hola, I just uploaded a standalone unix (only tested on macOS/Linux) port with edit, history and completion support to GitHub. I have been using it as my primary shell for months on macOS and it’s seems to be working pretty well. not underminin

Re: [9fans] Rc port.

2019-01-23 Thread Federico Benavento
Yes, you can, I think I even set the title of the terminal window when I cd. I’m not at home now, i’ll post my rcrc once I get a chance. > On 23 Jan 2019, at 19:11, Calvin Morrison wrote: > > feature i would ove: something equiv to a PS1 line so i know what > folder i'm in. Can I do that with $

Re: [9fans] Rc port.

2019-01-23 Thread Calvin Morrison
On Thu, 24 Jan 2019 at 09:00, Federico Benavento wrote: > > I’ve been able to survive quite well on a regular Mac terminal with it. > Thanks for trying it. > feature i would ove: something equiv to a PS1 line so i know what folder i'm in. Can I do that with $prompt? Calvin.

Re: [9fans] Rc port.

2019-01-23 Thread Federico Benavento
I’ve been able to survive quite well on a regular Mac terminal with it. Thanks for trying it. > On Jan 23, 2019, at 6:57 PM, Calvin Morrison wrote: > > On Thu, 24 Jan 2019 at 08:41, Federico Benavento wrote: >> >> Hola, >> >> I just uploaded a standalone unix (only tested on macOS/Linux) por

Re: [9fans] Rc port.

2019-01-23 Thread Calvin Morrison
On Thu, 24 Jan 2019 at 08:41, Federico Benavento wrote: > > Hola, > > I just uploaded a standalone unix (only tested on macOS/Linux) port with > edit, history and completion support to GitHub. > I have been using it as my primary shell for months on macOS and it’s seems > to be working pretty we

[9fans] Rc port.

2019-01-23 Thread Federico Benavento
Hola, I just uploaded a standalone unix (only tested on macOS/Linux) port with edit, history and completion support to GitHub. I have been using it as my primary shell for months on macOS and it’s seems to be working pretty well. https://github.com/benavento/rc Have fun. —- Federico G. Benaven