Unset PROMPT_DIRTRIM and ret for old prompt
Declare ret as an integer
Reset three vars in one go
Declare vars as integers in prompt