From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: <9fans@9fans.net> Date: Sat, 13 Jun 2015 10:02:56 +0200 From: Ingo Krabbe In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Trying to override 'cd' command Topicbox-Message-UUID: 584092b6-ead9-11e9-9d60-3106f5b1d025 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 wro= te: >=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 i= n 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 norma= lly >> > 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/