It might be a better idea to drop the "user=..." part of this string. If there is no user parameter, postgresql will use by default the username from the $USER environment variable on the computer it's running, i.e. your username. That way you wouldn't have to switch back and forth.