(ksh93u+m) is there any way to get the current working directory section on my prompt to update when changing directories?
hi! i've recently compiled and installed ksh93u+m, and have been configuring it. but, i have gotten stuck on something. i'm trying to make it have a prompt similar to bash. and i've mostly succeeded, except for the current working directory section. my problem, is that the current working directory section doesn't update when changing directories. is there a fix for this by any chance? here is my current prompt, if it helps.
PS1=$(echo -e "\033[32m[$(whoami)@$(cat /proc/sys/kernel/hostname)]\033[0m@\033[0;36m[$PWD]\033[0m:~$ ")"