Refactor setting prompt and terminal window title