From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <84052108-743E-449F-914B-9BF20E3DD4A1@gmail.com> <204A4699-0012-41BA-9E23-F272A94E2B10@gmail.com> From: Stuart Morrow Date: Thu, 24 Jan 2019 14:31:11 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: Re: [9fans] Rc port. Topicbox-Message-UUID: f3de5488-ead9-11e9-9d60-3106f5b1d025 > feature i would ove: something equiv to a PS1 line so i know what > folder i'm in. Can I do that with $prompt? IIRC, with es you can get persistent history, and control your prompts with arbitrarily complex logic, all without building stuff into /bin/es. You can do it with es code in esmain or your user profile (Again, IIRC.) I might have imagined that, but I'm even more sure you can set it up so that if a first refers to a directory, then it's the same as cd that directory. So a prompt could be /place; and you can click and resend the whole thing and the result is it goes to /place for you (then does the stuff after the semicolon). Finally, I'm most sure of all that if the above is correct then you can also make it so that /place { is the prompt and it executes the actual command only if the /place is successful. You'd have to finish off all your commands with a }, though... -Morrow