Add settitle function, remove PROMPT_COMMAND on Mac, clean-up ps1 function