fix term settings, provide shell code for clone