Not sure about this (I'm not using Terminal right now) - but isn't it possible to swap the config files? That would quite simple, something like this: #!/bin/bash mv term_config term_config.bak mv my_term_config term_config terminal mv term_config my_term_config mv term_config.bak term_config