Re: [9fans] Trying to override 'cd' command

2015-06-12 Thread Anthony Sorace
It works: : root; fn cd {builtin cd $* ; prompt=(': '`{pwd}^'; ' '')} : root; cd : /usr/a; cd /tmp : /tmp; If you’re still having trouble, paste a transcript like that, so we can see what’s going on. Note also that spaces in file names will screw up the

Re: [9fans] Trying to override 'cd' command

2015-06-12 Thread Bakul Shah
On Fri, 12 Jun 2015 16:05:21 CDT Ryan Gonzalez wrote: > > Thanks for replying! Unfortunately, that doesn't change anything. Still > stuck at the 'term% ' prompt. Invoke rc with -l flag (in acme middleclick on win rc -l).

Re: [9fans] Trying to override 'cd' command

2015-06-12 Thread Ryan Gonzalez
Thanks for replying! Unfortunately, that doesn't change anything. Still stuck at the 'term% ' prompt. On Sun, Jun 7, 2015 at 6:43 PM, Ingo Krabbe wrote: > try it with > > fn cd{ > builtin cd $1 > prompt=(`{pwd}^'% ' '') > } > > the difference is `{pwd} not '{pwd}. >