From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Benavento Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Date: Thu, 24 Jan 2019 13:23:50 -0300 References: <84052108-743E-449F-914B-9BF20E3DD4A1@gmail.com> <204A4699-0012-41BA-9E23-F272A94E2B10@gmail.com> <9FD2C901-6424-40DD-B22B-165C2B0FA46B@gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <9FD2C901-6424-40DD-B22B-165C2B0FA46B@gmail.com> Message-Id: <58B684D1-BB1D-4598-9B7B-38F945511C4D@gmail.com> Subject: Re: [9fans] Rc port. Topicbox-Message-UUID: f3f52096-ead9-11e9-9d60-3106f5b1d025 Here, this is what I have. fn setprompt { # delete old function fn $ps1 PWD=3D`{pwd} ps1=3D'['^$sysname^':'^`{basename $PWD}^']%' prompt=3D($ps1^' ' ' ') fn $ps1 { if(! ~ $#* 0) $* } # macOS Terminal Title printf '\033]7;%s\007' file://^`{hostname}^$PWD } fn cd { builtin cd $* && setprompt } > On Jan 23, 2019, at 7:32 PM, Federico Benavento = wrote: >=20 > Yes, you can, I think I even set the title of the terminal window when = I cd. I=E2=80=99m not at home now, i=E2=80=99ll post my rcrc once I get = a chance. >=20 >> On 23 Jan 2019, at 19:11, Calvin Morrison = wrote: >>=20 >> feature i would ove: something equiv to a PS1 line so i know what >> folder i'm in. Can I do that with $prompt? =E2=80=94- Federico G. Benavento benavento@gmail.com