Op 24/01/2020 om 18:56 schreef Ottavio Caruso:
On Fri, 24 Jan 2020 at 16:34, Kamil Rytarowski <n54%gmx.com@localhost> wrote:On 24.01.2020 14:19, Ottavio Caruso wrote:Hi, [hoping my post doesn't arrive duplicated or triplicated] How do you set the prompt in ksh? The man page doesn't seem to help. OpenBSD ksh has a different manpage. Compare: https://man.openbsd.org/ksh.1#PS1 and https://netbsd.gw.com/cgi-bin/man-cgi?ksh For example: PS1="\u@\h:\w\$ " is not expanded. ThanksPersonally, I use: export PS1='! $(whoami)@$(hostname) $PWD $ 'This works. Thanks.
Thank you all for your help. One more thing. Is there any trick I can use to get $PWD expanded as "~" rather than "/home/oc"? This takes a lot of real estate.
-- Ottavio Caruso