Korn Shell

enable TAB completion : set -o viraw (or use set -o vi, works on my redhat enterprise 5.7)

prompt formatting : PS1='[$USER@$HOSTNAME]:${PWD#${PWD%/*/*}/} # ‘

http://osr507doc.sco.com/en/OSUserG/_The_Korn_shell_profile_and_kshrc.html