From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9afc64abd4eb160a7ca1fba4ea8c795c@krabbe.dyndns.org> To: , <9fans@9fans.net> Date: Mon, 8 Jun 2015 01:43:34 +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: 57d821f4-ead9-11e9-9d60-3106f5b1d025 try it with=20 fn cd{ builtin cd $1 prompt=3D(`{pwd}^'% ' ' ') } the difference is `{pwd} not '{pwd}. =20 > Coming from a bash world, I really like knowing what directory I'm in a= t > the prompt. I tried putting this at the end of 'lib/profile': >=20 >=20 >=20 > fn cd{ > builtin cd $1 > prompt=3D('{pwd}^'% ' ' ') > } >=20 > cd $HOME >=20 >=20 >=20 > However, it doesn't work! The 'cd' command seems to do what it normally > does. The prompt stays at 'term% '. Does nothing. >=20 > --=20 > Ryan > [ERROR]: Your autotools build scripts are 200 lines longer than your > program. Something=E2=80=99s wrong. > http://kirbyfan64.github.io/