I have script log.txt in my bash profile; that creates a new sub process and records my entire session to log.txt. When I press cmd+t to open a new terminal usually this will open one in the same directory that the command was called; however, the new script sub process always reverts to the home directory.Is there a way to pass the current directory to this script command somehow?
cd to original location when recording session with script command
bash;shell;pwd;typescript