From mboxrd@z Thu Jan 1 00:00:00 1970
User-Agent: K-9 Mail for Android
In-Reply-To:
References:
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----438H4MTUXF70PMWFFTQFAAW2FE7PJE"
From: Ryan Gonzalez
Date: Sat, 13 Jun 2015 12:22:47 -0500
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>,
Ingo Krabbe
Message-ID:
Content-Transfer-Encoding: 7bit
Subject: Re: [9fans] Trying to override 'cd' command
Topicbox-Message-UUID: 5845b2be-ead9-11e9-9d60-3106f5b1d025
------438H4MTUXF70PMWFFTQFAAW2FE7PJE
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I added it to the end of lib/profile.
On June 13, 2015 3:02:56 AM CDT, Ingo Krabbe wrot=
e:
>I tried it in a fresh window, where it works for me.
>
>> Thanks for replying! Unfortunately, that doesn't change anything.
>Still
>> stuck at the 'term% ' prompt.
>>=20
>>=20
>> On Sun, Jun 7, 2015 at 6:43 PM, Ingo Krabbe
>wrote:
>>=20
>>> try it with
>>>
>>> fn cd{
>>> builtin cd $1
>>> prompt=3D(`{pwd}^'% ' ' ')
>>> }
>>>
>>> the difference is `{pwd} not '{pwd}.
>>>
>>>
>>>
>>> > Coming from a bash world, I really like knowing what directory I'm
>in at
>>> > the prompt. I tried putting this at the end of 'lib/profile':
>>> >
>>> >
>>> >
>>> > fn cd{
>>> > builtin cd $1
>>> > prompt=3D('{pwd}^'% ' ' ')
>>> > }
>>> >
>>> > cd $HOME
>>> >
>>> >
>>> >
>>> > However, it doesn't work! The 'cd' command seems to do what it
>normally
>>> > does. The prompt stays at 'term% '. Does nothing.
>>> >
>>> > --
>>> > Ryan
>>> > [ERROR]: Your autotools build scripts are 200 lines longer than
>your
>>> > program. Something=E2=80=99s wrong.
>>> > http://kirbyfan64.github.io/
>>>
>>>
>>>
>>=20
>>=20
>> --=20
>> Ryan
>> [ERROR]: Your autotools build scripts are 200 lines longer than your
>> program. Something=E2=80=99s wrong.
>> http://kirbyfan64.github.io/
--=20
Sent from my Android device with K-9 Mail. Please excuse my brevity.
------438H4MTUXF70PMWFFTQFAAW2FE7PJE
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
I added it to the end of lib/profile.
On June 13, 2015 3:02:56 AM CDT, Ingo Krabbe <=
ikrabbe.ask@gmail.com> wrote:
I tried it in a fresh window, where it works for me=
.
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 <ikrabbe.ask@gmail.com> wrote:
try it with
fn cd{<=
br /> builtin cd $1
prompt=3D(`{pwd}^'% ' '=
')
}
the difference is `{pwd} not '{pwd}.
Coming fr=
om a bash world, I really like knowing what directory I'm in at
the=
prompt. I tried putting this at the end of 'lib/profile':
fn cd{
builtin cd $1
prompt=3D('=
{pwd}^'% ' ' ')
}
cd $HOME
H=
owever, it doesn't work! The 'cd' command seems to do what it normally
does. The prompt stays at 'term% '. Does nothing.
--
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer t=
han your
program. Something=E2=80=99s wrong.
http://kirbyfan64.github.io/
--
Ryan
[ERROR]: Y=
our autotools build scripts are 200 lines longer than your
program.=
Something=E2=80=99s wrong.
http://kirbyfan64.github.io/
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
------438H4MTUXF70PMWFFTQFAAW2FE7PJE--