[noise@unvalidatedinput]$ man Terminal_Logger

Terminal_Logger(1)                          User Manuals                          Terminal_Logger(1)

       Terminal Logger
                                                                        Fri 10 Apr 09:47:15 BST 2015

       How do you keep logs of all the work done via terminal?

       Your  favourite  terminal  apps  should have an option to run a custom command instead of the
       default shell.

       zsh -l -c 'script -q -c zsh $HOME/sessionlogs/$BASHPID.sessionlog.$(date +%Y%m%d-%H%M).txt'

Linux                                        April 2015                           Terminal_Logger(1)

[noise@unvalidatedinput]$ ∎