split out PROMPT_COMMANDs and add vlock_term