Rework this code a bit so we don't end up with a broken .tcshrc