In your bashrc file (either /etc/bash.bashrc, or /etc/bashrc or /etc/bash/bashrc etc...) add the following lines by the very end --
if test -z "$script_running"; then export script_running=1; script -a <destination directory>`date +%s`.txt; exit; fi
AFTER creating <destination directory> -- this is the place where all your recordings will be placed.