How might one save and restore setting of variables in a bash script to and from a file in one's home (or sub-) directory?