Protect against failures of bashv4 stuff in older shells
avoid double parentheses in prompt
properly handle forwarded ssh agent connections