From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Anthony Sorace In-Reply-To: Date: Fri, 12 Jun 2015 17:50:00 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <9afc64abd4eb160a7ca1fba4ea8c795c@krabbe.dyndns.org> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Trying to override 'cd' command Topicbox-Message-UUID: 583c2f64-ead9-11e9-9d60-3106f5b1d025 It works: : root; fn cd {builtin cd $* ; prompt=3D(': '`{pwd}^'; ' ' = ')} : root; cd : /usr/a; cd /tmp : /tmp;=20 If you=E2=80=99re still having trouble, paste a transcript like that, so = we can see what=E2=80=99s going on. Note also that spaces in file names will screw up the easy version of = this. If you=E2=80=99re on a filesystem that likes such things, you = might instead want something like this: : /Library/Desktop; pwd =20 /Library/Desktop Pictures : /Library/Desktop; fn cd {builtin cd $* ; cwd=3D`{pwd} ; = prompt=3D(': '$"cwd^'; ' ' ')} : /Library/Desktop; cd . : /Library/Desktop Pictures;=20 > On Jun 12, 2015, at 17:05 , Ryan Gonzalez wrote: >=20 > Thanks for replying! Unfortunately, that doesn't change anything. = Still stuck at the 'term% ' prompt. >=20