copy the context file to the cache
filter COLUMNS and OLDPWD from the environment
filter out files that were written and deleted