mysql config files, global, commandline options and session variables
you seem to be able to set global and command line options variables in mysql config files but not session variables so you'll need to create a .my.cnf file with your favorite global and command line options and a separate mysql.sql file with your favorite session variables and source it once logged in
ie
.my.cnf
mysql.sql
mysql
see also